/* ==========================================
   FOLHA DE ESTILO PARA PÁGINAS DE PRODUTOS
   ========================================== */

/* Breadcrumbs Styling */
.breadcrumbs {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 12px 0;
    margin-bottom: 20px;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #6c757d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active span {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item span {
    display: flex;
    align-items: center;
}

/* Layout principal do produto */
.content-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    width: 100%;
    margin-bottom: 40px;
}

.sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sidebar-card {
    margin-bottom: 0;
    padding: 24px;
    height: fit-content;
    flex-shrink: 0;
}

.related-products .related-item,
.related-ingredients .ingredient-highlight {
    margin-bottom: 16px;
    padding: 14px;
}

.related-item .item-info h4,
.sidebar .ingredient-content h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}

.related-item .item-info p,
.sidebar .ingredient-content p {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* ================================================
   SISTEMA DE ANÁLISE DE SEGURANÇA UNIFICADO
   ================================================ */

.ingredient-metrics {
    margin: 0;
    padding: 30px;
    background: rgba(248, 249, 250, 0.6);
    border-top: 3px solid #e9ecef;
    border-radius: 0 0 15px 15px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ingredient-metrics::before {
    content: 'ANÁLISE TÉCNICA';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #7f8c8d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 20px;
    z-index: 1;
    border: 1px solid #e9ecef;
    border-radius: 20px;
}

/* Barra Principal de Segurança para Saúde */
.main-health-safety {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 0 0 15px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.main-health-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

.main-health-bar {
    width: 100%;
    max-width: 600px;
    height: 40px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #f1c40f, #2ecc71, #27ae60);
    border-radius: 20px;
    position: relative;
    margin: 0 auto 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.main-health-indicator {
    position: absolute;
    top: -8px;
    left: 0;
    width: 8px;
    height: 56px;
    background: #2c3e50;
    border-radius: 4px;
    transition: left 2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 12px rgba(44, 62, 80, 0.8);
    z-index: 2;
}

.main-health-indicator::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -4px;
    width: 16px;
    height: 16px;
    background: #2c3e50;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.main-health-score {
    font-size: 24px;
    font-weight: 800;
    color: var(--main-health-color);
    margin-bottom: 5px;
}

.main-health-label {
    font-size: 14px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-health-description {
    font-size: 13px;
    color: #495057;
    margin-top: 10px;
    line-height: 1.4;
}

/* Outros Medidores */
.other-metrics {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 18px;
    margin: 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.other-metrics-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
}

/* Sistema de Collapse para Parâmetros */
.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
}

.collapsible-header:hover {
    color: #007bff;
    transform: translateY(-1px);
}

.collapsible-header span {
    flex: 1;
}

.collapsible-header::after {
    content: '(clique para expandir)';
    font-size: 10px;
    color: #6c757d;
    font-weight: 400;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.collapsible-header.expanded::after {
    content: '(clique para recolher)';
}

.collapsible-header:hover::after {
    opacity: 1;
}

.toggle-icon {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: #6c757d;
}

.collapsible-header:hover .toggle-icon {
    color: #007bff;
}

.collapsible-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                padding 0.3s ease;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
}

.collapsible-header.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Animação suave para os cards quando expandem */
.collapsible-content:not(.collapsed) .metric-card {
    animation: slideInFade 0.5s ease-out forwards;
}

@keyframes slideInFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.metric-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 140px;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--metric-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.metric-card:hover::before {
    transform: scaleX(1);
}

.metric-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    background: var(--metric-color);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.metric-title {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin: 0;
}

/* Gráfico Donut Unificado para Todos os Parâmetros */
.metric-donut {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 10px auto;
}

.donut-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from -90deg, 
        var(--donut-color) 0deg calc(var(--percentage) * 3.6deg),
        #e9ecef calc(var(--percentage) * 3.6deg) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.donut-ring::before {
    content: '';
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.donut-value {
    position: relative;
    z-index: 2;
    font-weight: 700;
    font-size: 10px;
    color: var(--donut-color);
    text-align: center;
}

/* Cores dinâmicas baseadas no score */
.metric-donut[data-score="0"] { --donut-color: #dc3545; }
.metric-donut[data-score="1"] { --donut-color: #dc3545; }
.metric-donut[data-score="2"] { --donut-color: #e74c3c; }
.metric-donut[data-score="3"] { --donut-color: #f39c12; }
.metric-donut[data-score="4"] { --donut-color: #ff8c00; }
.metric-donut[data-score="5"] { --donut-color: #ff9800; }
.metric-donut[data-score="6"] { --donut-color: #ffc107; }
.metric-donut[data-score="7"] { --donut-color: #8bc34a; }
.metric-donut[data-score="8"] { --donut-color: #4caf50; }
.metric-donut[data-score="9"] { --donut-color: #2ecc71; }
.metric-donut[data-score="10"] { --donut-color: #27ae60; }

.metric-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.metric-score {
    font-weight: 700;
    font-size: 13px;
    color: var(--metric-color);
    margin-top: 6px;
}

.metric-label {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    margin-top: 3px;
}

.metric-description {
    font-size: 10px;
    color: #868e96;
    line-height: 1.3;
    margin-top: 6px;
    text-align: center;
}

/* Tooltip System */
.metric-tooltip {
    position: absolute;
    background: #2c3e50;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    max-width: 250px;
    line-height: 1.4;
}

.metric-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

.metric-tooltip.show {
    opacity: 1;
}

/* Color Variables for Different Metrics */
.metric-card.health { --metric-color: #e74c3c; }
.metric-card.environment { --metric-color: #27ae60; }
.metric-card.cost { --metric-color: #f39c12; }
.metric-card.allergen { --metric-color: #9b59b6; }
.metric-card.diabetic { --metric-color: #3498db; }
.metric-card.athlete-muscle { --metric-color: #e67e22; }
.metric-card.athlete-energy { --metric-color: #1abc9c; }
.metric-card.processing { --metric-color: #34495e; }

/* Advanced Visual Indicators */
.metric-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--metric-color);
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Animações Especiais para Gráficos */
@keyframes spin-in {
    0% { 
        transform: rotate(0deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: rotate(360deg) scale(1);
        opacity: 1;
    }
}

@keyframes donut-fill {
    0% { 
        background: conic-gradient(from -90deg, 
            var(--metric-color) 0deg 0deg,
            #e9ecef 0deg 360deg);
        transform: scale(0.9);
    }
    100% { 
        background: conic-gradient(from -90deg, 
            var(--metric-color) 0deg calc(var(--percentage) * 3.6deg),
            #e9ecef calc(var(--percentage) * 3.6deg) 360deg);
        transform: scale(1);
    }
}

@keyframes score-glow {
    0% { 
        box-shadow: 0 0 5px var(--metric-color);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 15px var(--metric-color);
        transform: scale(1.05);
    }
    100% { 
        box-shadow: 0 0 5px transparent;
        transform: scale(1);
    }
}

/* Efeitos de Partículas */
.metric-card.animating::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255,255,255,0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.metric-card:hover.animating::after {
    opacity: 1;
}

/* Melhorias Visuais para Donuts */
.donut-ring {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Simple Score Display para ingredientes em desenvolvimento */
.simple-score-display {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin-top: 10px;
}

.score-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: white;
    margin-bottom: 4px;
}

.score-badge.excellent { background: linear-gradient(135deg, #4CAF50, #66BB6A); }
.score-badge.good { background: linear-gradient(135deg, #2196F3, #42A5F5); }
.score-badge.warning { background: linear-gradient(135deg, #FF5722, #FF7043); }
.score-badge.neutral { background: linear-gradient(135deg, #FF9800, #FFB74D); }
.score-badge.alert { background: linear-gradient(135deg, #f44336, #ef5350); }

.simple-score-display small {
    color: #6c757d;
    font-size: 10px;
    font-style: italic;
}

.simple-sidebar-score {
    text-align: center;
    margin-top: 8px;
}

.simple-sidebar-score .score-badge {
    font-size: 12px;
    padding: 4px 12px;
}

/* ==================================================
   ESTILOS ESPECÍFICOS PARA COMPONENTES DE PRODUTO
   ================================================== */

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

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

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

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

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

.ranking-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(238, 90, 111, 0.4);
}

.product-badges {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
}

.badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

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

.product-info h1 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.product-info h2.brand {
    font-size: 1.8rem;
    color: #e74c3c;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-info .category,
.product-info .package-info {
    color: #7f8c8d;
    margin-bottom: 8px;
    font-size: 14px;
}

.product-description {
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #3498db;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat .label {
    font-size: 11px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.stat .value {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 5px;
    display: block;
}

/* Analysis Summary */
.analysis-summary {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

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

.summary-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.summary-item:hover {
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.icon-wrapper.positive {
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
}

.icon-wrapper.warning {
    background: linear-gradient(135deg, #FF9800, #FFB74D);
}

.icon-wrapper.info {
    background: linear-gradient(135deg, #2196F3, #42A5F5);
}

.summary-item h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.summary-item li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    padding-left: 20px;
}

.summary-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.summary-item:nth-child(2) li:before {
    content: "⚠";
    color: #f39c12;
}

.summary-item:nth-child(3) li:before {
    content: "ℹ";
    color: #3498db;
}

/* Detailed Analysis Styles */
.detailed-analysis {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title:after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Ingredients List Styles */
.ingredients-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0;
}

.ingredients-list .ingredient-item {
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

.ingredients-list .ingredient-item:last-child {
    margin-bottom: 0;
}

.ingredient-item {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 5px solid #3498db;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
    min-height: 600px;
}

.ingredient-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ingredient-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 0 0 15px 0;
    border-bottom: 1px solid #f1f2f6;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.ingredient-header h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.ingredient-link {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ingredient-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

.ingredient-tag {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 2px;
}

.ingredient-tag.excellent {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.ingredient-tag.good {
    background: linear-gradient(135deg, #3498db, #5dade2);
}

.ingredient-tag.neutral {
    background: linear-gradient(135deg, #f39c12, #f4d03f);
}

.ingredient-tag.warning {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.ingredient-tag.alert {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
}

.ingredient-tag.additive {
    background: linear-gradient(135deg, #9b59b6, #bb8fce);
}

.ingredient-content {
    color: #555;
    line-height: 1.6;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ingredient-text-section {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 50%;
}

.ingredient-analysis-section {
    flex: 1;
    min-height: 50%;
    display: flex;
    flex-direction: column;
}

.main-content .ingredient-content h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.main-content .ingredient-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #555;
}

.ingredient-details {
    margin-bottom: 15px;
    padding-bottom: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ingredient-details p {
    margin-bottom: 16px;
    padding-left: 0;
    padding-right: 0;
}

.ingredient-details p:last-child {
    margin-bottom: 0;
}

.ingredient-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.nutrition-highlight {
    display: flex;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
    background: rgba(52, 152, 219, 0.02);
    flex-shrink: 0;
}

.nutrition-highlight span {
    background: #ecf0f1;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nutrition-highlight i {
    font-size: 10px;
}

/* Nutritional Information Table */
.nutrition-table {
    overflow-x: auto;
    margin: 20px 0;
}

.nutrition-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

.nutrition-table th {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

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

.nutrition-score {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.nutrition-score.excellent {
    background: #27ae60;
}

.nutrition-score.good {
    background: #3498db;
}

.nutrition-score.warning {
    background: #f39c12;
}

.nutrition-score.alert {
    background: #e74c3c;
}

.serving-info {
    background: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
    font-size: 14px;
}

.nutrition-note {
    font-size: 12px;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
}

/* Health Analysis */
.health-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.health-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.health-item.positive {
    border-left: 5px solid #27ae60;
}

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

.health-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.health-item i {
    font-size: 20px;
}

.health-item.positive i {
    color: #27ae60;
}

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

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

.health-item li {
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    position: relative;
    padding-left: 20px;
}

.health-item.positive li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.health-item.negative li:before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.recommendation-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.recommendation-item:hover {
    transform: translateY(-3px);
}

.recommendation-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.recommendation-item i {
    color: #3498db;
}

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

.recommendation-item li {
    padding: 6px 0;
    color: #555;
    position: relative;
    padding-left: 15px;
}

.recommendation-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* Cultural Analysis */
.cultural-analysis {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
}

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

.insight-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.insight-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 12px;
}

.insight-item i {
    color: #3498db;
}

/* Final Verdict */
.final-verdict {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    align-items: center;
}

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

.score-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: conic-gradient(#4CAF50 0%, #e0e0e0 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s ease;
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: 15px;
    background: white;
    border-radius: 50%;
}

.score-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
}

.score-label {
    font-size: 1rem;
    color: #7f8c8d;
    margin-top: -5px;
}

.score-description {
    font-size: 14px;
    color: #27ae60;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.verdict-analysis h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.verdict-analysis p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.verdict-tags {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.tag.positive {
    background: #27ae60;
}

.tag.negative {
    background: #e74c3c;
}

.tag.warning {
    background: #f39c12;
}

/* ==================================
   SIDEBAR COMPONENTS
   ================================== */

.sidebar-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.sidebar-card:hover {
    transform: translateY(-3px);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

.sidebar-card h3 i {
    color: #3498db;
}

/* Related Products */
.related-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.related-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

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

.item-info {
    flex: 1;
}

.item-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
}

.item-info h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.item-info h4 a:hover {
    color: #3498db;
}

.item-info p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #7f8c8d;
}

.item-info .score {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Related Ingredients */
.ingredient-highlight {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.ingredient-highlight:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

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

.ingredient-icon.integral {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

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

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

.ingredient-content {
    flex: 1;
}

.ingredient-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #2c3e50;
}

.ingredient-content h4 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ingredient-content h4 a:hover {
    color: #3498db;
}

.ingredient-content p {
    margin: 0;
    font-size: 12px;
    color: #7f8c8d;
    line-height: 1.4;
}

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

.fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
    font-size: 13px;
    color: #555;
}

.fact-item i {
    color: #3498db;
    width: 16px;
}

/* Allergen Info */
.allergen-info h4 {
    margin: 15px 0 8px 0;
    font-size: 14px;
    color: #2c3e50;
}

.allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.allergen-tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

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

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

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

.comparison-tool p {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.btn-compare {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-compare:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.comparison-history {
    margin-top: 15px;
    text-align: left;
}

.comparison-history small {
    color: #95a5a6;
    font-size: 11px;
}

.comparison-history ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.comparison-history li {
    font-size: 12px;
    color: #7f8c8d;
    padding: 2px 0;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

/* Responsive Adjustments for Breadcrumbs */
@media (max-width: 768px) {
    .breadcrumbs {
        padding: 8px 0;
        margin-bottom: 15px;
    }

    .breadcrumb-list {
        font-size: 12px;
        gap: 4px;
    }

    .breadcrumb-item:not(:last-child)::after {
        margin: 0 4px;
        font-size: 12px;
    }

    .breadcrumb-item span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item span {
        max-width: 80px;
    }
}

/* Responsive Adjustments for Metrics */
@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .ingredient-item {
        min-height: 500px;
        flex-direction: column;
    }

    .ingredient-text-section {
        padding: 25px 20px;
        min-height: 45%;
    }

    .ingredient-metrics {
        margin: 0;
        padding: 20px;
        background: rgba(248, 249, 250, 0.6);
        border-top: 3px solid #e9ecef;
        border-radius: 0 0 15px 15px;
        min-height: 45%;
    }

    .ingredient-metrics::before {
        top: -12px;
        font-size: 10px;
        padding: 0 15px;
    }

    .main-health-safety {
        margin: 0 0 10px;
        border-radius: 10px;
        padding: 15px;
    }

    .other-metrics {
        margin: 0;
        border-radius: 10px;
        padding: 12px;
    }

    .main-health-bar {
        max-width: 100%;
        height: 35px;
    }

    .main-health-score {
        font-size: 20px;
    }

    .other-metrics {
        margin: 0 -10px;
        border-radius: 10px;
        padding: 16px;
    }

    .metric-card {
        min-height: 120px;
        padding: 12px;
    }

    .donut-ring::before {
        width: 38px;
        height: 38px;
    }
}

/* Responsive for Product Layout */
@media (max-width: 1024px) {
    .content-wrapper {
        max-width: 100%;
        padding: 0 16px;
    }
    
    .sidebar {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 16px;
    }
    
    .sidebar-card {
        padding: 20px;
    }

    .product-hero {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .quick-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        grid-template-columns: 1fr;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .health-analysis {
        grid-template-columns: 1fr;
    }

    .recommendations-grid {
        grid-template-columns: 1fr;
    }

    .final-verdict {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-info h1 {
        font-size: 1.8rem;
    }

    .product-info h2.brand {
        font-size: 1.5rem;
    }

    .ingredient-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .ingredient-header h4 {
        width: 100%;
        margin-bottom: 10px;
    }

    .ingredient-tag {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0 10px;
    }

    .product-header,
    .sidebar-card {
        padding: 25px 20px;
    }

    .ingredient-item {
        padding: 0;
        min-height: 450px;
    }

    .ingredient-text-section {
        padding: 20px 15px;
        min-height: 50%;
    }

    .ingredient-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }

    .ingredient-details {
        margin-bottom: 10px;
        padding-bottom: 0;
    }

    .nutrition-highlight {
        margin-top: 16px;
        margin-bottom: 16px;
        padding-top: 12px;
        padding-bottom: 8px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .market-insights {
        grid-template-columns: 1fr;
    }

    .verdict-tags {
        justify-content: center;
    }
}

/* Melhorar medidores principais */
.meter-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.meter-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* ===================================
   ANIMATIONS AND TRANSITIONS
   =================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Smooth loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 