:root {
    --primary-color: #FF9800;
    --primary-color-dark: #F57C00;
    --secondary-color: #FFC107;
    --accent-color: #D32F2F;
    --text-color: #424242;
    --header-footer-bg: #4E342E;
    --card-bg: #FFFFFF;
    --background-gradient: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    --badge-bg: var(--secondary-color);
    --badge-text: var(--header-footer-bg);

    --level-5-color: #2E7D32; /* Benéfico / Seguro (Verde Escuro) */
    --level-4-color: #4CAF50; /* Seguro (Verde) */
    --level-3-color: #FFC107; /* Moderação (Amarelo) */
    --level-2-color: #FF7043; /* Controverso (Laranja) */
    --level-1-color: #D32F2F; /* Perigoso (Vermelho) */
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background-gradient);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header e Navegação --- */
.header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 8px 0;
    text-align: center;
    color: white;
    font-size: 14px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* --- Busca --- */
.search-container {
    background: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    width: 90%;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-color-dark);
}


/* --- Conteúdo Principal --- */
.breadcrumb {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: var(--primary-color-dark);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
}

.product-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.product-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.ranking-badge {
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.card.full-width {
    grid-column: 1 / -1;
}

.card h2 {
    color: var(--primary-color-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.ingredient-disclaimer, .warning-box {
    background-color: #fffde7;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}
.warning-box {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}
.warning-box h3 {
    margin-top: 0;
    color: #e65100;
}
.warning-box ul {
    margin-left: 20px;
    margin-bottom: 0;
}

.ingredient-item {
    background: #fdfdfd;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.ingredient-details {
    flex: 1 1 500px; /* Flex-grow, flex-shrink, flex-basis */
}

.ingredient-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color-dark);
    margin-bottom: 0.5rem;
}

.ingredient-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed var(--primary-color-dark);
}
.ingredient-link:hover {
    color: var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
}

.ingredient-description {
    font-size: 0.95rem;
    color: #555;
}
.ingredient-description strong {
    color: #333;
}


.safety-graph {
    flex: 1 1 200px;
    text-align: center;
    padding: 0 1rem;
}
.safety-graph .bar-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.5rem;
}
.safety-graph .bars {
    display: flex;
    gap: 4px;
    height: 15px;
}
.safety-graph .bar {
    flex: 1;
    background-color: #e0e0e0;
    border-radius: 2px;
}
.safety-graph.level-1 .bar:nth-child(-n+1) { background-color: var(--level-1-color); }
.safety-graph.level-2 .bar:nth-child(-n+2) { background-color: var(--level-2-color); }
.safety-graph.level-3 .bar:nth-child(-n+3) { background-color: var(--level-3-color); }
.safety-graph.level-4 .bar:nth-child(-n+4) { background-color: var(--level-4-color); }
.safety-graph.level-5 .bar:nth-child(-n+5) { background-color: var(--level-5-color); }

.safety-graph .graph-text {
    font-weight: bold;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.safety-graph.level-1 .graph-text { color: var(--level-1-color); }
.safety-graph.level-2 .graph-text { color: var(--level-2-color); }
.safety-graph.level-3 .graph-text { color: var(--level-3-color); }
.safety-graph.level-4 .graph-text { color: var(--level-4-color); }
.safety-graph.level-5 .graph-text { color: var(--level-5-color); }

.main-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}
.content-area {
    grid-column: 1 / 2;
}
.sidebar {
    grid-column: 2 / 3;
}
.sidebar .card ul {
    list-style: none;
    padding-left: 0;
}
.sidebar .card ul li a {
    text-decoration: none;
    color: var(--primary-color-dark);
}
.sidebar .card ul li a:hover {
    text-decoration: underline;
}

/* --- Rodapé --- */
.footer {
    background-color: var(--header-footer-bg);
    color: #E0E0E0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 1px solid #777;
    padding-bottom: 0.5rem;
}

.footer-section p, .footer-section ul {
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #E0E0E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    margin-right: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #777;
    font-size: 0.8rem;
}

/* --- Animações --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.safety-graph .bar {
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s; /* Adicionado um pequeno delay */
}

.safety-graph.is-visible .bar {
    transform: scaleX(1);
}


/* --- Estilos para a Página Index --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 15px;
    margin-bottom: 2.5rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color-dark);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.product-card-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    overflow: hidden;
}

.product-card-large .product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

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

.product-card-content {
    padding: 1rem;
}

.product-card-content h3 {
    font-size: 2rem;
    margin: 1rem 0;
}

.product-card-content p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

.btn-read-more {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-read-more:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-2px);
}

.btn-read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}
.btn-read-more:hover i {
    transform: translateX(5px);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card-small {
    overflow: hidden;
}

.product-card-small img {
    width: 100%;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.4s ease;
}

.product-card-small:hover img {
    transform: scale(1.05);
}

.product-card-small .product-card-content {
    padding: 1rem;
}

.product-card-small h4 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem 0;
}

.product-card-small p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    min-height: 40px;
}

.btn-read-more-small {
    display: block;
    background-color: var(--accent-color);
    color: white;
    padding: 8px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-read-more-small:hover {
    background-color: #A32424;
}

.product-card-small.placeholder .btn-read-more-small.disabled {
    background-color: #BDBDBD;
    cursor: not-allowed;
}


/* --- Responsividade --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .content-area, .sidebar {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-main {
        position: relative;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu li {
        margin-bottom: 1rem;
        text-align: center;
    }
    .page-header {
        padding: 1.5rem;
    }
    .product-title {
        font-size: 2rem;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .product-card-large {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 2.2rem;
    }
}

/* --- Product Analysis Page Styles --- */

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-radius: 15px;
    overflow: hidden;
}

.product-hero {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem;
}

.product-image {
    position: relative;
    text-align: center;
}

.product-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ranking-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.product-info h1 {
    font-size: 2.5rem;
    color: var(--header-footer-bg);
    margin-bottom: 0.5rem;
}

.product-info h2.brand {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category, .package-info {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.1);
}

.stat .label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.stat .value {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Analysis Summary */
.analysis-summary {
    margin: 2rem 0;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.summary-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.icon-wrapper.positive {
    background: var(--level-4-color);
}

.icon-wrapper.warning {
    background: var(--level-2-color);
}

.icon-wrapper.info {
    background: var(--primary-color);
}

.summary-item h3 {
    color: var(--header-footer-bg);
    margin-bottom: 1rem;
}

.summary-item ul {
    list-style: none;
    padding-left: 0;
}

.summary-item li {
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.summary-item li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Ingredients Analysis */
.ingredients-list {
    margin-top: 1rem;
}

.ingredient-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
}

.ingredient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ingredient-header h4 {
    color: var(--header-footer-bg);
    margin: 0;
}

.ingredient-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.ingredient-tag.base {
    background: var(--level-4-color);
}

.ingredient-tag.warning {
    background: var(--level-2-color);
}

.ingredient-tag.additive {
    background: var(--level-3-color);
    color: var(--header-footer-bg);
}

.ingredient-tag.neutral {
    background: #6c757d;
}

.ingredient-item p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Nutrition Table */
.nutrition-table {
    overflow-x: auto;
    margin: 1rem 0;
}

.nutrition-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.nutrition-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.nutrition-table tr:hover {
    background: #f8f9fa;
}

.nutrition-table tr.highlight {
    background: #fff3cd;
}

.serving-info {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid #2196F3;
}

.vd-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Rating Badges */
.rating {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.rating.good {
    background: var(--level-4-color);
}

.rating.moderate {
    background: var(--level-3-color);
    color: var(--header-footer-bg);
}

.rating.warning {
    background: var(--level-2-color);
}

.rating.poor {
    background: var(--level-1-color);
}

/* Health Analysis */
.health-analysis {
    display: grid;
    gap: 1.5rem;
}

.health-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.health-section h4 {
    color: var(--header-footer-bg);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-section ul {
    list-style: none;
    padding-left: 0;
}

.health-section li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.health-section li:before {
    content: "▶";
    color: var(--primary-color);
    font-size: 0.8rem;
    position: absolute;
    left: 0;
    top: 0.6rem;
}

/* Recommendations */
.recommendations {
    display: grid;
    gap: 1.5rem;
}

.recommendation-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.recommendation-section h4 {
    color: var(--header-footer-bg);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.recommendation-section ul {
    list-style: none;
    padding-left: 0;
}

.recommendation-section li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.recommendation-section li:before {
    content: "✓";
    color: var(--level-4-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Cultural Context */
.cultural-aspects {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.cultural-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.cultural-item h4 {
    color: var(--header-footer-bg);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Final Verdict */
.final-verdict {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border: 2px solid var(--primary-color);
}

.verdict-content {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
}

.verdict-score {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 6px solid;
}

.score-circle.good {
    background: var(--level-4-color);
    border-color: var(--level-5-color);
    color: white;
}

.score-circle.moderate {
    background: var(--level-3-color);
    border-color: #FF8F00;
    color: var(--header-footer-bg);
}

.score-circle.poor {
    background: var(--level-2-color);
    border-color: var(--level-1-color);
    color: white;
}

.score {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.score-max {
    font-size: 1rem;
    opacity: 0.8;
}

.score-label {
    font-weight: bold;
    color: var(--header-footer-bg);
}

.verdict-text {
    line-height: 1.6;
}

.verdict-text p {
    margin-bottom: 1rem;
}

/* Responsive Design for Product Page */
@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .verdict-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .nutrition-table {
        font-size: 0.9rem;
    }
    
    .product-info h1 {
        font-size: 2rem;
    }
} 

/* Advanced Layout for Product Analysis */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.main-content {
    min-width: 0; /* Prevent grid overflow */
}

.sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

/* Enhanced Product Header */
.product-hero {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    align-items: start;
}

.product-image {
    position: relative;
}

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.integral {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.badge.fibras {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.product-description {
    margin: 1.5rem 0;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

/* Advanced Ingredient Analysis */
.ingredient-item.advanced {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff, #fafafa);
}

.ingredient-item.advanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.ingredient-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
}

.ingredient-details {
    min-width: 0;
}

.ingredient-details p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ingredient-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ingredient-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.nutrition-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nutrition-highlight span {
    padding: 0.3rem 0.8rem;
    background: #f0f2f5;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nutrition-highlight span i {
    font-size: 0.7rem;
}

/* Safety Meters */
.safety-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.meter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.meter-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    transition: all 0.6s ease;
}

.meter-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#e0e0e0 0%, #e0e0e0 100%);
    transition: all 1.5s ease;
}

.meter-score {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.meter-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Enhanced Tags */
.ingredient-tag.excellent {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.ingredient-tag.good {
    background: linear-gradient(135deg, #2196F3, #1976D2);
    color: white;
}

.ingredient-tag.neutral {
    background: linear-gradient(135deg, #FF9800, #F57C00);
    color: white;
}

.ingredient-tag.warning {
    background: linear-gradient(135deg, #FF5722, #D84315);
    color: white;
}

.ingredient-tag.alert {
    background: linear-gradient(135deg, #f44336, #c62828);
    color: white;
}

.ingredient-tag.additive {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    color: white;
}

/* Enhanced Nutrition Table */
.nutrition-table {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nutrition-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.nutrition-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.nutrition-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.nutrition-table tr:nth-child(even) {
    background: #fafafa;
}

.nutrition-table tr:hover {
    background: #f0f8ff;
}

.nutrition-score {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    display: inline-block;
    min-width: 70px;
}

.nutrition-score.excellent {
    background: #4CAF50;
    color: white;
}

.nutrition-score.good {
    background: #2196F3;
    color: white;
}

.nutrition-score.warning {
    background: #FF9800;
    color: white;
}

.nutrition-score.alert {
    background: #f44336;
    color: white;
}

/* Health Analysis */
.health-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.health-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.health-item.positive {
    border-left: 5px solid #4CAF50;
}

.health-item.negative {
    border-left: 5px solid #f44336;
}

.health-item h4 {
    color: #333;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.health-item.positive h4 i {
    color: #4CAF50;
}

.health-item.negative h4 i {
    color: #f44336;
}

/* Recommendations Grid */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.recommendation-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.recommendation-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cultural Analysis */
.cultural-analysis {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #b3d9ff;
}

.market-insights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.insight-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.insight-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Final Verdict */
.final-verdict {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.verdict-score {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    margin: 0 auto 1rem;
}

.score-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#e0e0e0 0%, #e0e0e0 100%);
    transition: all 2s ease;
}

.score-text {
    position: relative;
    z-index: 2;
    background: white;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.score-number {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
}

.score-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: -0.2rem;
}

.score-description {
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verdict-analysis {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--primary-color);
}

.verdict-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.verdict-tags .tag {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.verdict-tags .tag.positive {
    background: #4CAF50;
    color: white;
}

.verdict-tags .tag.negative {
    background: #f44336;
    color: white;
}

.verdict-tags .tag.warning {
    background: #FF9800;
    color: white;
}

/* Sidebar Styles */
.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Related Products */
.related-products {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.related-item:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.related-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.item-info p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.item-info .score {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Related Ingredients */
.related-ingredients {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ingredient-highlight {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ingredient-highlight:hover {
    background: #e9ecef;
}

.ingredient-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ingredient-icon.integral {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.ingredient-icon.warning {
    background: linear-gradient(135deg, #FF5722, #D84315);
}

.ingredient-icon.alert {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.ingredient-highlight h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.ingredient-highlight h4 a {
    color: var(--primary-color);
    text-decoration: none;
}

.ingredient-highlight h4 a:hover {
    text-decoration: underline;
}

.ingredient-highlight p {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.safety-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.safety-badge.excellent {
    background: #4CAF50;
    color: white;
}

.safety-badge.moderate {
    background: #FF9800;
    color: white;
}

.safety-badge.alert {
    background: #f44336;
    color: white;
}

/* Quick Facts */
.quick-facts {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
}

.fact-item i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

/* Allergen Info */
.allergen-info h4 {
    font-size: 0.9rem;
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.allergen-tag {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.allergen-tag.contains {
    background: #f44336;
    color: white;
}

.allergen-tag.may-contain {
    background: #FF9800;
    color: white;
}

/* Comparison Tool */
.comparison-tool {
    text-align: center;
}

.btn-compare {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.comparison-history {
    text-align: left;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.comparison-history ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
}

.comparison-history li {
    padding: 0.3rem 0;
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-history li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design for Analysis Page */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .ingredient-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .health-analysis {
        grid-template-columns: 1fr;
    }
    
    .final-verdict {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .market-insights {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1rem;
    }
    
    .meter-circle {
        width: 60px;
        height: 60px;
    }
    
    .meter-score {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-text {
        width: 75px;
        height: 75px;
    }
    
    .score-number {
        font-size: 1.5rem;
    }
}

/* Animation for scroll effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-on-scroll:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll:nth-child(4) { animation-delay: 0.4s; }
.animate-on-scroll:nth-child(5) { animation-delay: 0.5s; } 