/* ========================================
   PRODUCT CARD
   ======================================== */
.product-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--duration-normal) var(--ease-spring),
        box-shadow var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border-light);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.product-card-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-out);
}

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

.product-card-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.product-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
}

.ethical-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg-light);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.badge-environment { background: #e8f5e9; color: #2e7d32; border-color: #a5d6a7; }
.badge-labor { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }
.badge-animal { background: #f1f8e9; color: #558b2f; border-color: #c5e1a5; }
.badge-transparency { background: #fff3e0; color: #e65100; border-color: #ffcc80; }

.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--color-accent);
    color: white;
    margin-top: auto;
}

.score-badge.score-high { background: #27ae60; }
.score-badge.score-medium { background: #f39c12; }
.score-badge.score-low { background: #e74c3c; }

/* ========================================
   CATEGORY CARD
   ======================================== */
.category-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.category-card h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.category-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* ========================================
   FILTER SIDEBAR
   ======================================== */
.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.filter-sidebar {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
}

.filter-section {
    margin-bottom: var(--spacing-lg);
}

.filter-section h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.filter-section input[type="checkbox"] {
    margin-right: var(--spacing-xs);
}

.filter-section label {
    display: block;
    margin-bottom: var(--spacing-xs);
    cursor: pointer;
}

.score-range input[type="range"] {
    width: 100%;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.mobile-filter-toggle {
    display: none;
    position: fixed;
    bottom: var(--spacing-md);
    right: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 99;
}

/* ========================================
   SCORE BREAKDOWN
   ======================================== */
.score-overview {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    background: var(--color-accent);
    color: white;
}

.score-dimensions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    width: 100%;
}

.dimension-score {
    display: flex;
    flex-direction: column;
}

.dimension-score-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}

.dimension-score-bar {
    height: 8px;
    background: var(--color-bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.dimension-score-fill {
    height: 100%;
    background: var(--color-accent);
    transition: width 0.3s;
}

.dimension-score-value {
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ========================================
   EVIDENCE LIST
   ======================================== */
.evidence-list {
    list-style: none;
}

.evidence-item {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--border-radius);
}

.evidence-item h4 {
    font-size: 1rem;
    margin-bottom: var(--spacing-xs);
}

.evidence-type {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: white;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-right: var(--spacing-xs);
}

.credibility-verified { color: #27ae60; }
.credibility-credible { color: #f39c12; }
.credibility-self_reported { color: #95a5a6; }

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    padding: var(--spacing-sm) 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-light);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

/* ========================================
   CATEGORY HEADER
   ======================================== */
.category-header {
    background: var(--color-bg-light);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-lg);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.sort-options select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

/* ========================================
   PRODUCT DETAIL
   ======================================== */
.product-detail {
    padding: var(--spacing-lg) 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.product-image-section img {
    width: 100%;
    border-radius: var(--border-radius);
}

.brand-snippet {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--color-bg-light);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.brand-snippet img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.product-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.product-cta {
    margin-top: var(--spacing-md);
}

.product-sections section {
    margin-bottom: var(--spacing-xl);
}

.markdown-content {
    line-height: 1.8;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.markdown-content ul,
.markdown-content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.markdown-content p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        display: none;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .product-layout {
        grid-template-columns: 1fr;
    }

    .score-dimensions {
        grid-template-columns: 1fr;
    }
}
