/* Modern CSS Variables */
:root {
    --primary-green: #10b981;
    --dark-green: #059669;
    --light-green: #d1fae5;
    --gradient-start: #10b981;
    --gradient-end: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Navigation */
.eco-navbar {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.min-vh-80 {
    min-height: 80vh;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Search Styles */
.search-container {
    max-width: 600px;
}

.search-group {
    box-shadow: var(--shadow);
    border-radius: 15px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    background: var(--card-bg);
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn {
    padding: 1.25rem 2rem;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.search-suggestions {
    margin-top: 1rem;
    padding-left: 0.5rem;
}

.suggestion {
    color: var(--primary-green);
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s;
}

.suggestion:hover {
    color: var(--dark-green);
}

/* Hero Graphic */
.hero-graphic {
    position: relative;
    height: 400px;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
}

.floating-card.sustainable {
    top: 20%;
    left: 20%;
    color: var(--primary-green);
    border-left: 4px solid var(--primary-green);
}

.floating-card.not-sustainable {
    bottom: 20%;
    right: 10%;
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.earth-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    color: var(--primary-green);
    opacity: 0.1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Results Section */
.results-section {
    padding: 4rem 0;
    background: var(--background);
}

.result-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Brands Section */
.brands-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Brand Cards */
.brand-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-card h5 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.brand-card .card-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.rating-stars {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--card-bg);
}

.feature-card {
    text-align: center;
    padding: 2rem 1rem;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-green), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Footer */
.eco-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0;
}

.eco-footer h5 {
    margin-bottom: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Sustainability Badges */
.sustainability-badge {
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-success {
    background: var(--light-green);
    color: var(--dark-green);
}

.badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .search-input,
    .search-btn {
        padding: 1rem 1.5rem;
    }
    
    .floating-card {
        position: relative;
        margin: 1rem 0;
        animation: none;
    }
    
    .earth-container {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

@media (max-width: 768px) {
    .sidebar {
        position: relative;
        height: auto;
    }
    .main-content {
        margin-left: 0;
    }
    .card-body .fa-2x {
        font-size: 1.5rem !important;
    }
}

/* Browse Brands Styles */
.browse-header {
    background: linear-gradient(135deg, var(--eco-primary) 0%, var(--eco-secondary) 100%);
    color: #059669;
    padding: 4rem 0 3rem;
}

.browse-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.browse-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.browse-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.search-filter-container {
    max-width: 800px;
    margin: 0 auto;
}

.filter-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sort-options {
    display: flex;
    justify-content: center;
}

.brands-meta {
    display: flex;
    justify-content: center;
}

.browse-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.browse-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.brand-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.brand-name {
    flex: 1;
    margin-right: 1rem;
    margin-bottom: 0;
}

.brand-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.brand-details {
    margin-bottom: 1.5rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-stars {
    font-size: 1.2rem;
}

.rating-text {
    flex: 1;
}

.certifications {
    padding: 0.5rem 0;
    border-top: 1px solid var(--border-color);
}

.brand-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .browse-title {
        font-size: 2.5rem;
    }
    
    .brand-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sustainability-badge {
        margin-top: 0.5rem;
    }
    
    .rating-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* View All Button Styles */
.view-all-btn {
    padding: 0.75rem 2rem !important;
    border: 2px solid var(--primary-green) !important;
    color: var(--primary-green) !important;
    background: white !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
}

.view-all-btn:hover {
    background: var(--primary-green) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
}

/* Ensure brand cards have proper spacing */
.brands-section {
    padding: 4rem 0;
}

.brand-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}



/* Ensure proper contrast */
.brand-card h5 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.brand-card .card-text {
    color: var(--text-muted);
    flex-grow: 1;
}

/* Fix for rating stars and icons */
.stars-large {
    font-size: 2rem !important;
    letter-spacing: 3px !important;
    line-height: 1;
}

.rating-display {
    padding: 1.5rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.sustainability-details h5,
.sustainability-details h6 {
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.certifications {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
}

/* Fix badge alignment */
.sustainability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
}

.badge-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Fix for results card layout */
.result-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: none;
    overflow: hidden;
    margin: 2rem 0;
}

/* Ensure columns don't collapse */
.row.g-4 {
    margin: 0 -15px;
}

.row.g-4 > [class*="col-"] {
    padding: 0 15px;
}

/* Rating section styling */
.rating-section {
    height: 100%;
}

.rating-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stars-large {
    font-size: 2.5rem !important;
    letter-spacing: 5px !important;
    line-height: 1.2;
}

.rating-value {
    line-height: 1;
}

.visit-website-btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.visit-website-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

/* Sustainability details styling */
.sustainability-details {
    padding: 1rem 0;
}

.text-eco-dark {
    color: #1e7d5b !important;
}

.certifications {
    background: rgba(46, 204, 113, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #2ecc71;
    margin-top: 1.5rem;
}

/* Badge styling */
.sustainability-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.badge-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #28a745;
}

.badge-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #dc3545;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .result-card .card-body {
        padding: 1.5rem !important;
    }
    
    .stars-large {
        font-size: 2rem !important;
        letter-spacing: 3px !important;
    }
    
    .rating-value .display-4 {
        font-size: 2.5rem !important;
    }
    
    .sustainability-badge {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .rating-card {
        margin-top: 1.5rem;
    }
}

/* Make rating card smaller but still prominent */
.rating-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    min-height: auto;
    display: block;
    padding: 1.5rem !important;
}

/* Keep stars reasonable size */
.stars-large {
    font-size: 2rem !important;
    letter-spacing: 5px !important;
    line-height: 1.2;
    margin: 0.5rem 0;
}

/* Reasonable rating number size */
.rating-value .h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

.rating-value .h4 {
    font-size: 1.5rem !important;
}

/* Normal badge size */
.rating-text .badge,
.sustainability-status .badge {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 50px;
}

/* Normal button size */
.visit-website-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    font-weight: 600;
    border-radius: 50px;
    border: none;
}

/* Ensure rating title stays at top */
.rating-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e7d5b;
    margin-bottom: 1.5rem !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .rating-card {
        padding: 1.25rem !important;
    }
    
    .stars-large {
        font-size: 1.75rem !important;
        letter-spacing: 4px !important;
    }
    
    .rating-value .h1 {
        font-size: 2rem !important;
    }
    
    .rating-value .h4 {
        font-size: 1.25rem !important;
    }
}

.rating-section {
    margin-left: 30px;
}

/* Brand Modal Styles */
.brand-modal-content {
    padding: 0.5rem;
}

.modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 2px solid rgba(46, 204, 113, 0.2);
}

.modal-title {
    color: #1e7d5b;
    font-weight: 700;
}

.rating-section-modal {
    background: rgba(46, 204, 113, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.stars-modal {
    letter-spacing: 3px;
}

.certifications {
    background: rgba(46, 204, 113, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .brand-modal-content .row > .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Add to styles.css */
.rating-stars {
    font-size: 1.2rem;
    letter-spacing: 2px;
    line-height: 1;
}

.certifications {
    border-top: 1px solid #e9ecef;
    padding-top: 0.5rem;
}

.brand-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.brand-actions .btn {
    flex: 1;
    min-width: 100px;
}

/* Geo Information Styling */
.brand-geo {
    display: flex;
    align-items: center;
}

.brand-geo i {
    color: #2ecc71;
}

.geo-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.geo-info strong {
    color: #1e7d5b;
    font-size: 0.9rem;
}

.geo-info .col-6 {
    border-right: 1px solid #dee2e6;
}

.geo-info .col-6:last-child {
    border-right: none;
}

/* Mobile responsive geo */
@media (max-width: 768px) {
    .geo-info .row {
        flex-direction: column;
    }
    
    .geo-info .col-6 {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 0;
    }
    
    .geo-info .col-6:last-child {
        border-bottom: none;
    }
    
    .brand-geo {
        justify-content: center;
        text-align: center;
    }
}

/* Flag Emoji Styling */
.brand-geo {
    display: flex;
    align-items: center;
}

.emoji-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
    display: inline-block;
}

/* Geo Information Styling */
.geo-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.geo-info strong {
    color: #1e7d5b;
    font-size: 0.9rem;
}

.geo-info .col-6 {
    border-right: 1px solid #dee2e6;
}

.geo-info .col-6:last-child {
    border-right: none;
}

/* Mobile responsive geo */
@media (max-width: 768px) {
    .geo-info .row {
        flex-direction: column;
    }
    
    .geo-info .col-6 {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 0.75rem 0;
    }
    
    .geo-info .col-6:last-child {
        border-bottom: none;
    }
    
    .brand-geo {
        justify-content: center;
        text-align: center;
    }
}

/* Minimalist Geo Styling */
.brand-geo {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
}

/* Compact geo in header */
.d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    gap: 0.5rem !important;
}

.d-flex.align-items-center.gap-3 .text-muted {
    font-size: 0.9rem;
}

/* Modal header compact */
.brand-modal-content .d-flex.align-items-center.gap-3 {
    margin-bottom: 0.5rem;
}

.brand-modal-content .d-flex.align-items-center.gap-3 .text-muted {
    font-size: 0.85rem;
}

/* Remove the big geo box from modal */
.geo-info {
    display: none; /* Hide the big geo box */
}

/* Make badges more compact */
.sustainability-badge, .badge {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem !important;
    }
    
    .brand-modal-content .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .brand-geo {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Consistent styling for both modal and homepage cards */
.result-card .card-body {
    padding: 2rem !important;
}

.result-card .sustainability-details h5,
.result-card .sustainability-details h6 {
    color: #1e7d5b;
    display: flex;
    align-items: center;
}

.result-card .certifications {
    background: rgba(46, 204, 113, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border-left: 4px solid #2ecc71;
}

.result-card .rating-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    height: 100%;
}

.result-card .stars-large {
    font-size: 1.5rem !important;
    letter-spacing: 3px !important;
}

.result-card .rating-value .h3 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
}

.result-card .rating-value .h5 {
    font-size: 1.5rem !important;
}

/* Header alignment */
.result-card .d-flex.align-items-center.gap-3 {
    flex-wrap: wrap;
    gap: 0.75rem !important;
    margin-bottom: 1rem;
}

.result-card .badge {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .result-card .card-body {
        padding: 1.5rem !important;
    }
    
    .result-card .rating-section {
        margin-top: 1.5rem;
    }
    
    .result-card .d-flex.align-items-center.gap-3 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem !important;
    }
}

/* Ultra Compact Styling */
.rating-section-compact {
    background: rgba(46, 204, 113, 0.05) !important;
    border: 1px solid rgba(46, 204, 113, 0.2) !important;
}

.rating-section-compact .border-end {
    border-right: 1px solid #dee2e6 !important;
}

.stars-compact {
    letter-spacing: 2px;
    line-height: 1;
}

.rating-value-compact .h4 {
    font-size: 1.5rem !important;
}

.sustainability-details-compact h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e7d5b;
    margin-bottom: 0.5rem;
}

.sustainability-details-compact p.small {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.certifications-compact {
    background: rgba(46, 204, 113, 0.03);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #2ecc71;
}

.certifications-compact h6 {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.certifications-compact p {
    font-size: 0.8rem !important;
}

/* Compact header */
.card-body .d-flex.justify-content-between h3 {
    font-size: 1.5rem;
}

.card-body .text-muted.small {
    font-size: 0.8rem;
}

/* Compact buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Remove unnecessary padding */
.card-body {
    padding: 1.5rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .rating-section-compact .row > [class*="col-"] {
        margin-bottom: 0.5rem;
    }
    
    .rating-section-compact .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 0.5rem;
    }
    
    .card-body {
        padding: 1rem !important;
    }
    
    .card-body .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-body .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

/* Ultra Minimal Styling */
.card-body {
    padding: 1rem !important;
}

.sustainability-details-compact h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e7d5b;
    margin-bottom: 0.5rem;
}

.sustainability-details-compact p.small {
    font-size: 0.85rem;
    line-height: 1.4;
}

.certifications-compact {
    background: rgba(46, 204, 113, 0.03);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 2px solid #2ecc71;
}

.certifications-compact h6 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.certifications-compact p {
    font-size: 0.8rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 0.75rem !important;
    }
    
    .d-flex.justify-content-between.align-items-start {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .d-flex.justify-content-between.align-items-start .btn {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}

/* New Hero Section */
.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Quick Search Badges */
.quick-searches {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-search {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-search:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-visual {
    position: relative;
    z-index: 2;
}

.earth-icon {
    font-size: 8rem;
    color: #2ecc71;
    animation: float 6s ease-in-out infinite;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 2px solid rgba(46, 204, 113, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0% { 
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: white;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--eco-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--eco-primary), var(--eco-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.step-card h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Top Brands Section */
.top-brands-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

/* Why It Matters Section */
.why-matters {
    padding: 5rem 0;
    background: white;
}

.matters-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.matters-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.matters-list {
    list-style: none;
    padding: 0;
}

.matters-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.matters-list li i {
    color: var(--eco-primary);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.matters-visual {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 15px;
    border-left: 4px solid var(--eco-primary);
    transition: transform 0.3s ease;
}

.impact-card:hover {
    transform: translateX(10px);
}

.impact-card i {
    font-size: 2rem;
    color: var(--eco-primary);
    margin-right: 1.5rem;
}

.impact-text {
    display: flex;
    flex-direction: column;
}

.impact-text strong {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.impact-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--eco-primary) 0%, var(--eco-secondary) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-stats .row {
        gap: 1rem;
    }
    
    .step-card {
        margin-bottom: 2rem;
    }
    
    .matters-content {
        text-align: center;
        margin-bottom: 3rem;
    }
    
    .matters-list {
        text-align: left;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
    }
}

/* Fix missing CSS variables */
:root {
    --eco-primary: #10b981;
    --eco-secondary: #059669;
    --light-bg: #f8fafc;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
}

/* Fix font colors */
.hero-title {
    color: var(--text-dark) !important;
}

.hero-subtitle {
    color: var(--text-light) !important;
}

.search-input {
    color: var(--text-dark) !important;
}

.search-input::placeholder {
    color: var(--text-light) !important;
}

.search-btn {
    color: white !important;
}

.quick-search {
    color: var(--primary-green) !important;
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Make hero section shorter */
.hero-section {
    padding: 3rem 0 !important;
}

.min-vh-80 {
    min-height: 60vh !important;
}

/* Remove "Why Sustainable Fashion Matters" section */
.why-matters {
    display: none !important;
}

/* Fix hero stats colors */
.hero-stats {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
}

.stat-number {
    color: var(--primary-green) !important;
}

.stat-label {
    color: var(--text-light) !important;
}

/* Fix navbar text colors */
.navbar-brand,
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem !important;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        text-align: center;
    }
    
    .hero-visual {
        height: 250px !important;
        margin-top: 2rem;
    }
    
    .earth-icon {
        font-size: 4rem !important;
    }
    
    .pulse-ring {
        width: 120px !important;
        height: 120px !important;
    }
    
    .floating-card {
        position: relative !important;
        margin: 1rem 0 !important;
        animation: none !important;
    }
}

/* Browse Page Header Styles */
.browse-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    color: var(--text-dark) !important;
    padding: 3rem 0 2rem !important;
}

.browse-title {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    color: var(--text-dark) !important;
}

.browse-subtitle {
    font-size: 1.1rem !important;
    color: var(--text-light) !important;
    margin-bottom: 2rem !important;
}

/* Search Input Styling */
.search-filter-container .search-group {
    max-width: 500px !important;
    margin: 0 auto 2rem !important;
}

.search-filter-container .search-input {
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
}

.search-filter-container .search-btn {
    background: var(--primary-green) !important;
    border: 2px solid var(--primary-green) !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.5rem !important;
}

/* Filter Buttons Styling */
.filter-options .btn-group {
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.filter-options .btn {
    border: 2px solid var(--primary-green) !important;
    color: var(--primary-green) !important;
    background: white !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    font-weight: 500 !important;
}

.filter-options .btn.active {
    background: var(--primary-green) !important;
    color: white !important;
}

.filter-options .btn:hover {
    background: var(--light-green) !important;
    color: var(--dark-green) !important;
}

/* Sort Dropdown Styling */
.sort-options .form-select {
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    padding: 0.5rem 1rem !important;
    max-width: 200px !important;
    font-size: 0.9rem !important;
}

/* Browse Section Background */
.browse-section {
    background: white !important;
    padding: 2rem 0 !important;
}

/* Brand Cards Styling for Browse Page */
.browse-card {
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    background: white !important;
}

.browse-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .browse-title {
        font-size: 2rem !important;
    }
    
    .filter-options .btn-group {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    .filter-options .btn {
        width: 100% !important;
    }
    
    .search-filter-container .search-group {
        flex-direction: column !important;
    }
    
    .search-filter-container .search-input {
        border-radius: 8px 8px 0 0 !important;
    }
    
    .search-filter-container .search-btn {
        border-radius: 0 0 8px 8px !important;
        width: 100% !important;
    }
}

/* Make browse header more compact */
.browse-header {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    color: var(--text-dark) !important;
    padding: 2rem 0 1.5rem !important; /* Reduced padding */
}

.browse-title {
    font-size: 2rem !important; /* Smaller title */
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important; /* Reduced margin */
    color: var(--text-dark) !important;
}

.browse-subtitle {
    font-size: 1rem !important; /* Smaller subtitle */
    color: var(--text-light) !important;
    margin-bottom: 1.5rem !important; /* Reduced margin */
}

/* Make search section more compact */
.search-filter-container {
    max-width: 600px !important;
    margin: 0 auto !important;
}

.search-filter-container .search-group {
    margin-bottom: 1rem !important; /* Reduced margin */
}

/* Compact filter section */
.filter-options {
    gap: 0.5rem !important; /* Tighter spacing */
}

.filter-options .btn-group {
    margin-bottom: 1rem !important; /* Reduced margin */
}

/* Make sort options more compact */
.sort-options {
    margin-top: 0.5rem !important; /* Reduced margin */
}

/* Fix search bar alignment and spacing */
.browse-header .search-filter-container {
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.browse-header .search-filter-container .search-group {
    margin: 0 !important;            /* Removes unwanted spacing */
    max-width: 100% !important;      /* Prevents center alignment */
    justify-content: flex-start !important;
}