/* Global Design Overhaul */
:root {
	--off-primary: #2c3e50;
	--off-secondary: #34495e;
	--off-accent: #27ae60;
	--off-bg: #fdfdfd;
	--off-text: #333;
	--off-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
	font-family: var(--off-font);
	color: var(--off-text);
}

/* Single Product Page Styles (Refined) */
.off-product-container {
	max-width: 1200px;
	margin: 40px auto;
	padding: 40px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
	border-radius: 16px;
}

.off-entry-header {
	text-align: center;
	margin-bottom: 50px;
	position: relative;
}

.off-entry-title {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 15px;
	color: var(--off-primary);
	letter-spacing: -1px;
}

.off-brands {
	font-size: 1.4rem;
	color: #7f8c8d;
	font-weight: 300;
}

.off-product-content {
	display: flex;
	flex-wrap: wrap;
	gap: 60px;
}

.off-product-gallery {
	flex: 1;
	min-width: 350px;
	text-align: center;
}

.off-main-image {
	max-width: 100%;
	height: auto;
	border-radius: 20px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease;
}

.off-main-image:hover {
	transform: scale(1.02);
}

.off-product-info {
	flex: 1.5;
	min-width: 350px;
}

/* Scores Section */
.off-scores-section {
	display: flex;
	gap: 25px;
	margin-bottom: 40px;
	flex-wrap: wrap;
}

.off-score-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 25px;
	border-radius: 12px;
	color: white;
	font-weight: bold;
	min-width: 90px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s;
}

.off-score-badge:hover {
	transform: translateY(-3px);
}

.off-score-label {
	font-size: 0.75rem;
	text-transform: uppercase;
	opacity: 0.9;
	letter-spacing: 1px;
	margin-bottom: 5px;
}

.off-score-value {
	font-size: 2.2rem;
	line-height: 1;
}

/* Nutri-Score Colors */
.off-nutriscore-a {
	background: linear-gradient(135deg, #038141, #04964c);
}

.off-nutriscore-b {
	background: linear-gradient(135deg, #85BB2F, #9cdb36);
}

.off-nutriscore-c {
	background: linear-gradient(135deg, #FECB02, #ffe066);
	color: #333;
}

.off-nutriscore-d {
	background: linear-gradient(135deg, #EE8100, #ff9514);
}

.off-nutriscore-e {
	background: linear-gradient(135deg, #E63E11, #ff5729);
}

/* NOVA Colors */
.off-nova-1 {
	background: #00AA00;
}

.off-nova-2 {
	background: #FFCC00;
	color: #333;
}

.off-nova-3 {
	background: #FF6600;
}

.off-nova-4 {
	background: #FF0000;
}

/* Eco-Score Colors */
.off-ecoscore-a {
	background: #1E8F4E;
}

.off-ecoscore-b {
	background: #2ECC71;
}

.off-ecoscore-c {
	background: #F1C40F;
	color: #333;
}

.off-ecoscore-d {
	background: #E67E22;
}

.off-ecoscore-e {
	background: #E74C3C;
}

/* Meta Section */
.off-meta-section {
	background: #f8f9fa;
	padding: 25px;
	border-radius: 12px;
	margin-bottom: 40px;
	border: 1px solid #edf2f7;
}

.off-meta-section p {
	margin: 8px 0;
	color: #555;
	font-size: 1.05rem;
}

/* Ingredients Section */
.off-ingredients-section {
	margin-bottom: 40px;
}

.off-ingredients-section h3,
.off-nutrition-section h3 {
	font-size: 1.5rem;
	margin-bottom: 20px;
	color: var(--off-primary);
	border-bottom: 2px solid #eee;
	padding-bottom: 10px;
}

.off-ingredients-text {
	line-height: 1.8;
	color: #444;
	background: #fff;
	padding: 20px;
	border: 1px solid #eee;
	border-radius: 12px;
	font-size: 1rem;
}

.off-allergens {
	margin-top: 15px;
	color: #e74c3c;
	font-weight: 500;
	background: #fdeaea;
	padding: 10px 15px;
	border-radius: 8px;
	display: inline-block;
}

/* Nutrition Table */
.off-nutrition-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	margin-top: 10px;
	border: 1px solid #eee;
	border-radius: 12px;
	overflow: hidden;
}

.off-nutrition-table th,
.off-nutrition-table td {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.off-nutrition-table th {
	background-color: #f8f9fa;
	font-weight: 700;
	color: var(--off-primary);
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
}

.off-nutrition-table tr:last-child td {
	border-bottom: none;
}

/* Footer */
.off-footer-attribution {
	margin-top: 60px;
	padding-top: 30px;
	border-top: 1px solid #eee;
	text-align: center;
	color: #95a5a6;
}

/* Comparator Styles */
.off-compare-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #3498db;
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 600;
	transition: background 0.2s;
	border: none;
	cursor: pointer;
	margin-top: 20px;
}

.off-compare-btn:hover {
	background: #2980b9;
}

.off-compare-btn.active {
	background: #e74c3c;
}

.off-floating-compare {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: var(--off-accent);
	color: white;
	padding: 15px 30px;
	border-radius: 50px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	text-decoration: none;
	font-weight: bold;
	z-index: 9999;
	transition: transform 0.2s;
}

.off-floating-compare:hover {
	transform: translateY(-5px);
}

.off-comparison-wrapper {
	overflow-x: auto;
	padding: 20px 0;
}

.off-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: white;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.off-comparison-table th,
.off-comparison-table td {
	padding: 20px;
	border: 1px solid #eee;
	text-align: center;
	vertical-align: middle;
}

.off-comparison-table th {
	background: #f8f9fa;
	font-weight: bold;
}

.off-compare-img {
	max-width: 100px;
	height: auto;
}

.off-remove-compare {
	background: none;
	border: none;
	color: #e74c3c;
	font-size: 1.5rem;
	cursor: pointer;
	margin-left: 10px;
}
/* AI Summary */
.off-ai-summary {
	background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
	border: 1px solid #d1d9e6;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
	position: relative;
	overflow: hidden;
}

.off-ai-summary::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(to bottom, #a18cd1 0%, #fbc2eb 100%);
}

.off-ai-summary h3 {
	margin-top: 0;
	color: #2c3e50;
	font-size: 1.3rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.off-ai-content {
	color: #444;
	line-height: 1.6;
	font-size: 1.05rem;
}

.off-ai-content strong {
	color: #2c3e50;
	font-weight: 700;
}
