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

/* ========================================
   A•AÍ DA TERRA — Product Page Design System
   Identical Aesthetics to Landing Page
   ======================================== */

: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-600: #15803d;
	--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);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}

body {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--bg-page);
	color: var(--text-primary);
	line-height: 1.5;
	overflow-x: hidden;
	min-height: 100vh;
}

a {
	text-decoration: none;
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ---------- Page Layout Container ---------- */
.page-wrapper {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px 120px 16px;
	position: relative;
	background: var(--bg-page);
	min-height: 100vh;
}

/* ---------- Top Navigation ---------- */
.top-nav {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	margin: 0 -16px 16px -16px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-bottom: 1px solid rgba(109, 40, 217, 0.08);
	box-shadow: var(--shadow-sm);
}

.btn-back {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var(--purple-50);
	border: 1px solid rgba(109, 40, 217, 0.12);
	border-radius: var(--radius-full);
	color: var(--purple-700);
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: all 0.25s var(--ease-out);
}

.btn-back:hover {
	background: var(--purple-100);
	transform: translateX(-2px);
	box-shadow: var(--shadow-sm);
}

.btn-back i {
	font-size: 13px;
}

.top-nav-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--purple-700);
	letter-spacing: -0.2px;
}

.top-nav-badge {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--green-50);
	border: 1px solid rgba(22, 163, 74, 0.2);
	border-radius: var(--radius-full);
	font-size: 11px;
	font-weight: 700;
	color: var(--green-500);
}

.top-nav-badge .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--green-500);
	box-shadow: 0 0 8px rgba(22, 163, 74, 0.6);
}

/* ---------- Product Hero Section ---------- */
.product-hero {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 24px 20px;
	border: 1px solid rgba(109, 40, 217, 0.08);
	box-shadow: var(--shadow-md);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 16px;
	position: relative;
	overflow: hidden;
}

.product-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	left: 50%;
	transform: translateX(-50%);
	width: 260px;
	height: 180px;
	background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.product-hero-image {
	width: 170px;
	height: 170px;
	position: relative;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-hero-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 12px 24px rgba(71, 4, 96, 0.18));
	transition: transform 0.3s var(--ease-spring);
}

.product-hero:hover .product-hero-image img {
	transform: scale(1.05);
}

.product-hero-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
}

.product-badge-featured {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--purple-50);
	border: 1px solid rgba(109, 40, 217, 0.15);
	border-radius: var(--radius-full);
	font-size: 12px;
	font-weight: 700;
	color: var(--purple-700);
}

.product-hero-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: -0.4px;
	line-height: 1.25;
}

.product-hero-extras {
	font-size: 13px;
	font-weight: 600;
	color: var(--green-500);
	display: flex;
	align-items: center;
	gap: 6px;
}

.product-pricing {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 6px;
}

.product-price-old {
	font-size: 14px;
	color: var(--text-muted);
	text-decoration: line-through;
	font-weight: 500;
}

.product-price-current {
	font-size: 26px;
	font-weight: 800;
	color: var(--green-500);
	letter-spacing: -0.5px;
}

.product-price-discount {
	padding: 4px 10px;
	background: #fef2f2;
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: var(--radius-full);
	font-size: 12px;
	font-weight: 800;
	color: var(--red-500);
}

/* ---------- Options Sections Cards ---------- */
.options-section {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px 18px;
	margin-bottom: 16px;
	border: 1px solid rgba(109, 40, 217, 0.08);
	box-shadow: var(--shadow-sm);
	transition: box-shadow 0.3s var(--ease-out);
}

.options-section:hover {
	box-shadow: var(--shadow-md);
}

.options-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.options-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--text-primary);
	display: flex;
	align-items: center;
	gap: 8px;
}

.options-subtitle {
	font-size: 12px;
	color: var(--text-secondary);
	margin-bottom: 16px;
}

.options-counter {
	padding: 4px 12px;
	background: var(--purple-50);
	border: 1px solid rgba(109, 40, 217, 0.15);
	border-radius: var(--radius-full);
	font-size: 12px;
	font-weight: 700;
	color: var(--purple-700);
}

.choice-badge {
	padding: 4px 10px;
	background: #fef2f2;
	border: 1px solid rgba(239, 68, 68, 0.2);
	border-radius: var(--radius-full);
	font-size: 11px;
	font-weight: 700;
	color: var(--red-500);
	text-transform: uppercase;
}

/* ---------- Choice Cards ("Iguais" vs "Cada um diferente") ---------- */
.choice-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 12px;
}

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

.choice-card {
	background: var(--bg-secondary);
	border: 2px solid rgba(109, 40, 217, 0.08);
	border-radius: var(--radius-md);
	padding: 14px 14px;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	transition: all 0.25s var(--ease-out);
	user-select: none;
}

.choice-card input[type="radio"] {
	display: none;
}

.choice-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--text-muted);
	margin-top: 2px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s var(--ease-out);
}

.choice-card.active {
	background: var(--purple-50);
	border-color: var(--purple-600);
	box-shadow: 0 4px 14px rgba(109, 40, 217, 0.12);
}

.choice-card.active .choice-radio {
	border-color: var(--purple-600);
	background: var(--purple-600);
	box-shadow: inset 0 0 0 3px white;
}

.choice-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

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

.choice-desc {
	font-size: 11px;
	color: var(--text-secondary);
	line-height: 1.3;
}

/* ---------- Tabs para "Cada um diferente" ---------- */
.copos-tabs-container {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	background: var(--purple-50);
	padding: 6px;
	border-radius: var(--radius-full);
	border: 1px solid rgba(109, 40, 217, 0.12);
}

.copo-tab {
	flex: 1;
	height: 40px;
	border: none;
	border-radius: var(--radius-full);
	background: transparent;
	color: var(--text-secondary);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.25s var(--ease-out);
}

.copo-tab.active {
	background: var(--purple-600);
	color: white;
	box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ---------- Option Item Row ---------- */
.option-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px dashed rgba(109, 40, 217, 0.08);
}

.option-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.option-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary);
	transition: color 0.2s var(--ease-out);
}

.option-name.active {
	font-weight: 700;
	color: var(--purple-700);
}

/* Quantity Controls */
.qty-controls {
	display: flex;
	align-items: center;
	gap: 8px;
}

.qty-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s var(--ease-out);
	user-select: none;
}

.btn-minus {
	background: var(--purple-50);
	border: 1px solid rgba(109, 40, 217, 0.15);
	color: var(--purple-700);
}

.btn-minus:hover:not(:disabled) {
	background: var(--purple-100);
	transform: scale(1.06);
}

.btn-plus {
	background: var(--purple-600);
	border: none;
	color: white;
	box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

.btn-plus:hover:not(:disabled) {
	background: var(--purple-700);
	transform: scale(1.06);
	box-shadow: 0 4px 12px rgba(109, 40, 217, 0.35);
}

.qty-btn i {
	font-size: 12px;
}

.qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.qty-value {
	width: 26px;
	text-align: center;
	border: none;
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	font-family: inherit;
}

/* ---------- Observation Section ---------- */
.observation-section {
	background: var(--bg-card);
	border-radius: var(--radius-lg);
	padding: 20px 18px;
	margin-bottom: 16px;
	border: 1px solid rgba(109, 40, 217, 0.08);
	box-shadow: var(--shadow-sm);
}

.observation-label {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-primary);
	display: block;
	margin-bottom: 8px;
}

.observation-textarea {
	width: 100%;
	height: 80px;
	background: var(--bg-secondary);
	border: 1px solid rgba(109, 40, 217, 0.12);
	border-radius: var(--radius-md);
	padding: 12px;
	font-family: inherit;
	font-size: 13px;
	color: var(--text-primary);
	resize: none;
	outline: none;
	transition: all 0.2s var(--ease-out);
}

.observation-textarea:focus {
	border-color: var(--purple-600);
	background: white;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.observation-counter {
	font-size: 11px;
	color: var(--text-muted);
	text-align: right;
	margin-top: 4px;
}

/* ---------- Fixed Bottom Checkout Bar ---------- */
.bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-top: 1px solid rgba(109, 40, 217, 0.1);
	box-shadow: 0 -4px 20px rgba(71, 4, 96, 0.08);
	padding: 14px 16px;
}

.bottom-bar-content {
	max-width: 680px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bottom-bar-total {
	font-size: 14px;
	color: var(--text-secondary);
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.bottom-bar-total strong {
	font-size: 22px;
	font-weight: 800;
	color: var(--green-500);
	letter-spacing: -0.5px;
}

.btn-checkout {
	flex: 1;
	max-width: 280px;
	height: 50px;
	background: var(--green-500);
	border: none;
	border-radius: var(--radius-md);
	color: white;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
	transition: all 0.3s var(--ease-out);
	letter-spacing: 0.3px;
}

.btn-checkout:hover {
	background: var(--green-600);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(22, 163, 74, 0.35);
}

.btn-checkout:active {
	transform: translateY(0);
}
