@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ========================================
   A•AÍ DA TERRA — Main Catalog Design System
   ======================================== */

:root {
	--bg-primary: #ffffff;
	--bg-secondary: #f9f6fc;
	--bg-card: #ffffff;
	--bg-page: #f4eef7;

	--purple-50: #f9f0fc;
	--purple-100: #f0ddf6;
	--purple-400: #8a3aab;
	--purple-500: #6b0d8a;
	--purple-600: #570670;
	--purple-700: #470460;
	--purple-glow: rgba(71, 4, 96, 0.12);

	--green-500: #16a34a;
	--green-50: #f0fdf4;
	--gold-400: #f59e0b;
	--red-500: #ef4444;

	--text-primary: #1e132b;
	--text-secondary: #5b5370;
	--text-muted: #9490a3;

	--shadow-sm: 0 2px 8px rgba(71, 4, 96, 0.04);
	--shadow-md: 0 6px 20px rgba(71, 4, 96, 0.08);
	--shadow-lg: 0 12px 32px rgba(71, 4, 96, 0.12);

	--gradient-primary: linear-gradient(135deg, #470460, #6b0d8a, #8a3aab);

	--radius-sm: 8px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-xl: 32px;
	--radius-full: 9999px;

	--ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

* {
	margin: 0;
	padding: 0;
	outline: 0;
	box-sizing: border-box;
	text-decoration: none;
}

::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
	background: var(--purple-100);
	border-radius: var(--radius-full);
}

html {
	-webkit-overflow-scrolling: touch;
	scroll-behavior: smooth;
}

body, html {
	font-family: "Poppins", sans-serif;
	font-size: 15px;
	color: var(--text-primary);
	background: var(--bg-page);
	min-height: 100%;
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

button, input, textarea, select {
	font-family: "Poppins", sans-serif;
}

.container {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px;
}

/* HEADER COVER & INFO */
header#topo {
	background: var(--bg-primary);
	position: relative;
	box-shadow: var(--shadow-sm);
}

header#topo > .container {
	padding: 0;
}

header#topo .cover.main {
	max-width: 680px;
	margin: 0 auto;
	width: 100%;
	aspect-ratio: 1200 / 400;
	position: relative;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

header#topo .cover.main::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(71, 4, 96, 0.25) 100%);
	pointer-events: none;
	z-index: 1;
}

header#topo .cover .logo {
	position: absolute;
	bottom: -44px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
}

header#topo .cover .logo figure {
	width: 88px;
	height: 88px;
	border-radius: var(--radius-full);
	border: 3.5px solid var(--bg-primary);
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(71, 4, 96, 0.18);
	background: var(--bg-primary);
}

header#topo .cover .logo figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s var(--ease-out);
}

header#topo .cover .logo:hover figure img {
	transform: scale(1.08);
}

header#topo .info {
	text-align: center;
	position: relative;
	z-index: 20;
	margin-top: -20px;
	background: var(--bg-primary);
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	padding: 68px 16px 20px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	box-shadow: 0 -4px 16px rgba(71, 4, 96, 0.05);
}

@media (max-width: 580px) {
	header#topo .cover.main {
		min-height: 115px;
	}

	header#topo .cover .logo {
		bottom: -36px;
	}

	header#topo .cover .logo figure {
		width: 72px;
		height: 72px;
		border-width: 3px;
	}

	header#topo .info {
		margin-top: -18px;
		border-top-left-radius: 20px;
		border-top-right-radius: 20px;
		padding: 58px 16px 18px 16px;
		gap: 10px;
	}

	header#topo .info .detalhe .detalhe-rating .separador-dot {
		display: none;
	}
}

header#topo .info h1 {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
	letter-spacing: -0.3px;
}

header#topo .info .detalhe {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	font-size: 13px;
	color: var(--text-secondary);
}

header#topo .info .detalhe span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

header#topo .info .detalhe .detalhe-rating {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

header#topo .info .aberto {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 14px;
	background: var(--green-50);
	border: 1px solid rgba(22, 163, 74, 0.25);
	border-radius: var(--radius-full);
	font-size: 12px;
	font-weight: 700;
	color: var(--green-500);
}

/* CATEGORIES MENU */
#menuCategorias {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #470460;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 8px 0;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	width: 100%;
	overflow: hidden;
}

#menuCategorias .categorias {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	white-space: nowrap;
	padding: 0 16px;
	justify-content: center;
	max-width: 680px;
	margin: 0 auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

@media (max-width: 480px) {
	#menuCategorias .categorias {
		justify-content: flex-start;
	}
}

#menuCategorias .categorias::-webkit-scrollbar {
	display: none;
}

#menuCategorias .categorias a {
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.12);
	transition: all 0.2s ease;
}

#menuCategorias .categorias a:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.25);
}

/* MAIN & ALERTS */
main#lista {
	padding: 16px 0 40px;
}

.alert-banner {
	padding: 12px 16px;
	border-radius: var(--radius-md);
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	line-height: 1.4;
}

.alert-banner-green {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.alert-banner-purple {
	background: #f3e8ff;
	color: #6b21a8;
	border: 1px solid #e9d5ff;
}

/* PRODUCT CATEGORIES & CARDS */
.categoria-titulo {
	font-size: 18px;
	font-weight: 700;
	color: var(--purple-700);
	margin: 24px 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.produtos-grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.produto-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	border: 1px solid rgba(71, 4, 96, 0.07);
	box-shadow: var(--shadow-sm);
	transition: all 0.2s var(--ease-out);
	color: inherit;
}

.produto-card:hover {
	transform: translateY(-2px);
	border-color: var(--purple-400);
	box-shadow: var(--shadow-md);
}

.produto-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	padding-right: 12px;
}

.produto-badge {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	background: var(--purple-700);
	padding: 3px 8px;
	border-radius: var(--radius-full);
	margin-bottom: 2px;
}

.produto-titulo {
	font-size: 15px;
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1.3;
}

.produto-subtitulo {
	font-size: 12px;
	color: var(--text-secondary);
}

/* HORIZONTAL PRICING WRAPPER */
.preco-wrapper {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.preco-rotulo {
	font-size: 12px;
	color: var(--text-muted);
}

.preco-antigo {
	font-size: 12px;
	color: var(--text-muted);
	text-decoration: line-through;
}

.preco-atual {
	font-size: 17px;
	font-weight: 800;
	color: var(--green-500);
}

.preco-desconto {
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	background: var(--red-500);
	padding: 1px 5px;
	border-radius: var(--radius-sm);
}

.produto-foto {
	width: 84px;
	height: 84px;
	overflow: hidden;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
}

.produto-foto img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.produto-card:hover .produto-foto img {
	transform: scale(1.06);
}

/* REVIEWS CARD SECTION */
.avaliacoes-summary {
	background: var(--bg-card);
	border-radius: var(--radius-md);
	padding: 16px;
	text-align: center;
	border: 1px solid rgba(71, 4, 96, 0.07);
	box-shadow: var(--shadow-sm);
	margin: 28px 0 16px;
}

.avaliacoes-score {
	font-size: 24px;
	font-weight: 700;
	color: var(--text-primary);
}

.avaliacoes-stars {
	color: var(--gold-400);
	font-size: 15px;
	margin: 2px 0 4px;
}

.avaliacoes-meta {
	font-size: 12px;
	color: var(--text-secondary);
	font-weight: 500;
}

.avaliacoes-subtitulo {
	font-size: 13px;
	color: var(--purple-700);
	font-weight: 600;
	margin-top: 10px;
}

.avaliacoes-lista {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#reviews-ocultas {
	display: none;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

#reviews-ocultas.ativo {
	display: flex !important;
}

.review-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 14px;
	background: var(--bg-card);
	border-radius: var(--radius-md);
	border: 1px solid rgba(71, 4, 96, 0.06);
	box-shadow: var(--shadow-sm);
}

.review-info {
	flex: 1;
	padding-right: 10px;
}

.review-nome {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
}

.review-stars-row {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 2px 0 4px;
}

.review-score-num {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-primary);
}

.review-stars {
	color: var(--gold-400);
	font-size: 12px;
}

.review-data {
	font-size: 11px;
	color: var(--text-muted);
	margin-left: 4px;
	font-weight: 500;
}

.review-texto {
	font-size: 13px;
	color: var(--text-secondary);
	line-height: 1.4;
}

.review-foto {
	width: 60px;
	height: 60px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	flex-shrink: 0;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
}

.review-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	-webkit-user-drag: none;
}

/* FOOTER */
.site-footer {
	text-align: center;
	padding: 24px 16px;
	background: var(--bg-primary);
	border-top: 1px solid rgba(71, 4, 96, 0.08);
	font-size: 12px;
	color: var(--text-secondary);
}

.site-footer-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 8px;
}

.site-footer-links a {
	color: var(--purple-700);
	font-weight: 600;
	transition: color 0.2s;
}

.site-footer-links a:hover {
	color: var(--purple-500);
}

/* ========================================
   SWEETALERT2 LOCATION MODAL CUSTOM STYLING
   ======================================== */

.swal2-container {
	backdrop-filter: blur(8px) !important;
	-webkit-backdrop-filter: blur(8px) !important;
	background: rgba(26, 16, 37, 0.55) !important;
}

.swal2-popup {
	background: #ffffff !important;
	border-radius: 24px !important;
	font-family: 'Poppins', sans-serif !important;
	box-shadow: 0 20px 50px rgba(71, 4, 96, 0.25) !important;
	border: 1px solid rgba(71, 4, 96, 0.1) !important;
	padding: 28px 24px !important;
}

.swal2-title {
	color: var(--purple-700) !important;
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: -0.3px !important;
}

.swal2-html-container {
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
}

.swal2-select {
	border-radius: var(--radius-md) !important;
	border: 2px solid var(--purple-100) !important;
	padding: 12px 14px !important;
	font-size: 14px !important;
	color: var(--text-primary) !important;
	background: var(--purple-50) !important;
	font-family: 'Poppins', sans-serif !important;
	margin: 16px auto 8px !important;
	width: 100% !important;
	max-width: 100% !important;
	outline: none !important;
	transition: all 0.2s ease !important;
}

.swal2-select:focus {
	border-color: var(--purple-500) !important;
	box-shadow: 0 0 0 4px var(--purple-glow) !important;
}

.swal2-confirm {
	background: var(--gradient-primary) !important;
	border-radius: var(--radius-full) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	padding: 12px 28px !important;
	box-shadow: 0 6px 18px rgba(71, 4, 96, 0.25) !important;
	font-family: 'Poppins', sans-serif !important;
	border: none !important;
	transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 8px 22px rgba(71, 4, 96, 0.35) !important;
}

.swal2-cancel {
	background: transparent !important;
	color: var(--text-secondary) !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: var(--radius-full) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	padding: 12px 24px !important;
	font-family: 'Poppins', sans-serif !important;
	transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
	background: var(--purple-50) !important;
	color: var(--purple-700) !important;
	border-color: var(--purple-400) !important;
}

.swal2-timer-progress-bar {
	background: var(--purple-500) !important;
}

.swal2-icon.swal2-success {
	border-color: var(--green-500) !important;
	color: var(--green-500) !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
	background-color: var(--green-500) !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
	border-color: rgba(22, 163, 74, 0.25) !important;
}

/* VER MAIS AVALIA•.ES BUTTON */
.ver-mais-avaliacoes-wrapper {
	text-align: center;
	margin: 16px 0 8px 0;
	width: 100%;
}

.btn-ver-mais {
	background: var(--purple-50);
	color: var(--purple-700);
	border: 1.5px solid var(--purple-100);
	border-radius: var(--radius-full);
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: var(--shadow-sm);
}

.btn-ver-mais:hover {
	background: var(--purple-100);
	color: var(--purple-700);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}
