/* Global Styles & Variables */
:root {
    --bg-base: #080a0d;
    --bg-surface: #101318;
    --bg-surface-hover: #181d24;
    --border-color: rgba(255, 255, 255, 0.05);
    --border-color-active: rgba(0, 230, 118, 0.3);

    --text-primary: #f5f6f8;
    --text-secondary: #dadbdc;
    --text-muted: #607d8b;

    --color-primary: #00e676;
    /* Emerald Green */
    --color-primary-hover: #00c853;
    --color-primary-glow: rgba(0, 230, 118, 0.15);

    --color-accent: #00b0ff;
    /* Tech Blue */
    --color-accent-glow: rgba(0, 176, 255, 0.15);

    --font-brand: 'Outfit', sans-serif;
    --font-ui: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-ui);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glassmorphism utility */
.glass {
    background: rgba(16, 19, 24, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.glass:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

/* Top Stats Bar */
.top-bar {
    background: linear-gradient(90deg, #004d40, #00251a);
    color: #e8f5e9;
    font-size: 13px;
    padding: 8px 0;
    font-family: var(--font-brand);
    border-bottom: 1px solid rgba(0, 230, 118, 0.2);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-stats strong {
    color: var(--color-primary);
}

/* Header & Navigation */
.main-header {
    background: rgba(8, 10, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
}

.logo {
    font-family: var(--font-brand);
    font-size: 27px;
    font-weight: 800;
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo-re {
    color: var(--color-primary);
}

.logo-use {
    color: var(--text-primary);
}

.logo-by {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    letter-spacing: 0.5px;
}

.logo-area {
    margin-right: 32px;
    flex-shrink: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    width: 280px;
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    width: 320px;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 10px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 13.5px;
    outline: none;
    width: 100%;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.icon-btn.relative {
    position: relative;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--color-primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px var(--color-primary);
}

.user-profile {
    display: flex;
    align-items: center;
}

.avatar {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #000;
    font-weight: 700;
    font-size: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 28px 0;
    font-family: var(--font-ui);
}

.breadcrumbs a {
    transition: var(--transition-smooth);
}

.breadcrumbs a:hover {
    color: var(--text-primary);
}

.breadcrumbs span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Product Section Layout */
.product-block {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    margin-bottom: 64px;
}

/* Gallery Styles */
.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.zoom-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform 0.4s ease;
}

/* Zoom Hover Effect */
.main-image-container:hover .zoom-image {
    transform: scale(1.08);
}

/* Condition Tooltip Badge */
.condition-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(16, 20, 25, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-brand);
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    color: #ffff;
}

.condition-excelente {
    color: var(--color-primary);
    border-color: rgba(0, 230, 118, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--color-primary);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
        box-shadow: 0 0 14px var(--color-primary);
    }

    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.badge-tooltip {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    background: #14171d;
    border: 1px solid var(--border-color-active);
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
    padding: 12px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: var(--transition-smooth);
    z-index: 10;
}

.condition-badge:hover .badge-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.badge-tooltip strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

/* Thumbnails */
.thumbnails-container {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.thumb {
    width: 86px;
    height: 86px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.thumb:hover,
.thumb.active {
    border-color: var(--color-primary);
    background: rgba(0, 230, 118, 0.03);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
}

/* Product Info Section */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-tag {
    font-family: var(--font-brand);
    color: var(--color-primary);
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 16px;
}

.product-title {
    font-family: var(--font-brand);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.product-meta strong {
    color: var(--text-primary);
}

.separator {
    color: var(--text-muted);
}

/* Price Card Design */
.price-card {
    padding: 24px;
    margin-bottom: 28px;
    border-color: var(--border-color-active);
    background: linear-gradient(135deg, rgba(16, 19, 24, 0.8), rgba(0, 230, 118, 0.02));
}

.price-retail {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-retail del {
    font-size: 14.5px;
}

.price-reuse {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}

.price-reuse-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-family: var(--font-brand);
}

.price-val-area {
    display: flex;
    align-items: flex-start;
}

.price-val-area .currency {
    font-family: var(--font-brand);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-right: 4px;
    margin-top: 4px;
}

.price-val-area .value {
    font-family: var(--font-brand);
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.price-savings {
    font-size: 13.5px;
    color: #e8f5e9;
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.2);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-savings strong {
    color: var(--color-primary);
}

/* Sustainability Widget Styling */
.sustainability-widget {
    padding: 24px;
    margin-bottom: 32px;
    border-color: rgba(0, 230, 118, 0.15);
    background: linear-gradient(135deg, rgba(8, 12, 16, 0.8), rgba(0, 230, 118, 0.04));
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.05);
}

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

.sus-icon-container {
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}

.sus-header h3 {
    font-family: var(--font-brand);
    font-size: 16.5px;
    font-weight: 600;
}

.sus-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.sus-body {
    display: flex;
    flex-direction: column;
}

.co2-counter {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
}

.co2-value {
    font-family: var(--font-brand);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(0, 230, 118, 0.3);
}

.co2-unit {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.impact-progress-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 20px;
    overflow: hidden;
}

.impact-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.impact-equivalent-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.impact-equivalent-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.eq-icon {
    font-size: 18px;
}

.impact-equivalent-list strong {
    color: var(--text-primary);
}

/* Purchase Actions block */
.actions-block {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 600;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.qty-value {
    font-size: 15px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.btn {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-primary);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.flex-1 {
    flex: 1;
}

/* Highlights List */
.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.highlights-list li {
    font-size: 13.5px;
    color: var(--text-secondary);
}

/* Tabs Section Styling */
.tabs-section {
    padding: 32px;
    margin-bottom: 64px;
}

.tabs-header {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1px;
    margin-bottom: 28px;
}

.tab-btn {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    outline: none;
    padding: 12px 24px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.specs-table tr:hover {
    background: rgba(255, 255, 255, 0.01);
}

.specs-label {
    color: var(--text-secondary);
    padding: 14px 20px;
    width: 25%;
    font-weight: 500;
}

.specs-value {
    color: var(--text-primary);
    padding: 14px 20px;
}

/* Condition Tab Layout */
.condition-tab-layout {
    display: grid;
    grid-template-columns: 0.35fr 0.65fr;
    gap: 40px;
    align-items: center;
}

.condition-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.metric-circle {
    width: 140px;
    height: 140px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 176, 255, 0.15);
}

.metric-num {
    font-family: var(--font-brand);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.metric-unit {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.condition-metric-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.checklist-wrapper h3 {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checklist-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.checklist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checklist-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.check-icon {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--color-primary);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.checklist-list li strong {
    display: block;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.checklist-list li span {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Downloads Section */
.download-intro {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition-smooth);
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.05);
    transform: translateY(-2px);
}

.dl-icon {
    background: rgba(239, 83, 80, 0.1);
    border: 1px solid rgba(239, 83, 80, 0.2);
    color: #ef5350;
    font-size: 11px;
    font-weight: 800;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}

.download-card:nth-child(3) .dl-icon {
    background: rgba(0, 176, 255, 0.1);
    border: 1px solid rgba(0, 176, 255, 0.2);
    color: var(--color-accent);
}

.dl-details {
    flex: 1;
}

.dl-details h4 {
    font-family: var(--font-brand);
    font-size: 14.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.dl-details p {
    font-size: 11.5px;
    color: var(--text-muted);
}

.dl-action-icon {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.download-card:hover .dl-action-icon {
    color: var(--color-primary);
}

/* Related Carousel / Grid */
.related-section {
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.related-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.05);
}

.rel-tag {
    font-family: var(--font-brand);
    font-size: 10px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    width: fit-content;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.rel-img-placeholder {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.related-card:hover .rel-img-placeholder {
    background: rgba(0, 230, 118, 0.02);
    border-color: rgba(0, 230, 118, 0.2);
}

.rel-icon-item {
    font-size: 28px;
}

.rel-info h3 {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.35;
}

.rel-condition {
    font-size: 11.5px;
    font-weight: 500;
    margin-bottom: 16px;
}

.text-excelente {
    color: var(--color-primary);
}

.text-otima {
    color: var(--color-accent);
}

.text-boa {
    color: #ffd740;
}

.rel-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.rel-price {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.rel-savings {
    font-size: 11px;
    color: var(--color-primary);
    font-weight: 500;
}

/* Footer Styling */
.main-footer {
    background: #040507;
    border-top: 1px solid var(--border-color);
    padding: 32px 0 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.main-footer h3 {
    font-family: var(--font-brand);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.main-footer h4 {
    font-family: var(--font-brand);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-footer p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 10px;
}

.footer-co2-highlight {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: #e8f5e9 !important;
    font-size: 11.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-links a {
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsiveness Settings */
@media (max-width: 1024px) {
    .product-block {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .search-box {
        width: 200px;
    }

    .search-box:focus-within {
        width: 240px;
    }

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

    .related-card:last-child {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }

    .main-nav ul {
        gap: 12px 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .search-box {
        width: 100% !important;
        max-width: 320px;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Theme Toggle Button Styles */
.moon-icon {
    display: none;
}

.sun-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: none;
}

[data-theme="light"] .moon-icon {
    display: block;
}

/* Light Theme Variables & Class Overrides */
[data-theme="light"] {
    --bg-base: #f3f6f9;
    /* Soft premium light-gray background */
    --bg-surface: #ffffff;
    --bg-surface-hover: #eef2f6;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-active: rgba(0, 200, 83, 0.4);

    --text-primary: #1a1d20;
    --text-secondary: #a8aaad;
    --text-muted: #72808d;

    --color-primary: #00c853;
    /* High contrast emerald */
    --color-primary-hover: #00b0ff;
    /* Subtle blue shift on hover */
    --color-primary-glow: rgba(0, 200, 83, 0.15);

    --color-accent: #0091ea;
    /* High contrast tech blue */
    --color-accent-glow: rgba(0, 145, 234, 0.15);
}

/* Specific elements adjustments for light mode */
[data-theme="light"] .glass {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .glass:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .main-header {
    background: rgba(243, 246, 249, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .logo-by {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
}

[data-theme="light"] .search-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-box:focus-within {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-primary);
}

[data-theme="light"] .icon-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .icon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--text-secondary);
}

[data-theme="light"] .badge {
    color: #ffffff;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.4);
}

[data-theme="light"] .price-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 200, 83, 0.03));
    border-color: rgba(0, 200, 83, 0.2);
}

[data-theme="light"] .price-retail {
    color: var(--text-muted);
}

[data-theme="light"] .price-savings {
    background: rgba(0, 200, 83, 0.08);
    border-color: rgba(0, 200, 83, 0.2);
    color: #1b5e20;
}

[data-theme="light"] .sustainability-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 200, 83, 0.04));
    border-color: rgba(0, 200, 83, 0.15);
    box-shadow: 0 8px 30px rgba(0, 200, 83, 0.05);
}

[data-theme="light"] .impact-progress-container {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .quantity-selector {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qty-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: var(--text-secondary);
}

[data-theme="light"] .specs-table tr {
    border-bottom-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .specs-table tr:hover {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .condition-metric-card {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .download-card {
    background: rgba(0, 0, 0, 0.015);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .download-card:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--color-primary);
}

[data-theme="light"] .rel-img-placeholder {
    background: rgba(0, 0, 0, 0.01);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .related-card:hover .rel-img-placeholder {
    background: rgba(0, 200, 83, 0.02);
    border-color: rgba(0, 200, 83, 0.2);
}

[data-theme="light"] .main-footer {
    background: #e9ecef;
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer-co2-highlight {
    background: rgba(0, 200, 83, 0.08);
    border-color: rgba(0, 200, 83, 0.15);
    color: #1b5e20 !important;
}

[data-theme="light"] .top-bar {
    background: linear-gradient(90deg, #e8f5e9, #c8e6c9);
    border-bottom-color: rgba(0, 200, 83, 0.15);
    color: #1b5e20;
}

[data-theme="light"] .top-bar-stats strong {
    color: #00c853;
}

/* ==========================================================================
   Dashboard, Catalog Browsing & Search styles (added for ReUse database app)
   ========================================================================== */

/* Page Headers */
.dashboard-header-section {
    margin-top: 40px;
    margin-bottom: 48px;
    text-align: center;
}

.page-title {
    font-family: var(--font-brand);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.page-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Overview Grid */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-active);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.05);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-wrapper.blue {
    background: rgba(0, 176, 255, 0.1);
    border: 1px solid rgba(0, 176, 255, 0.25);
    color: var(--color-accent);
}

.stat-icon-wrapper.green {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--color-primary);
}

.stat-icon-wrapper.purple {
    background: rgba(124, 77, 255, 0.1);
    border: 1px solid rgba(124, 77, 255, 0.25);
    color: #7c4dff;
}

.stat-icon-wrapper.green-bright {
    background: rgba(0, 230, 118, 0.12);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--color-primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-num {
    font-family: var(--font-brand);
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Families Section */
.families-section {
    margin-bottom: 56px;
}

.section-title-area {
    margin-bottom: 28px;
}

.families-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.family-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.family-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.1);
    background: rgba(0, 230, 118, 0.02);
}

.family-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-active);
    box-shadow: 0 12px 35px rgba(0, 230, 118, 0.04);
}

.family-icon {
    font-size: 32px;
    margin-bottom: 20px;
    z-index: 2;
}

.family-icon img {
    transition: var(--transition-smooth);
}

.family-title {
    font-family: var(--font-brand);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    z-index: 2;
}

.family-count {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    z-index: 2;
}

.family-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    font-size: 12.5px;
    z-index: 2;
}

.family-val {
    font-weight: 600;
    color: var(--text-primary);
}

.family-co2 {
    color: var(--color-primary);
    font-weight: 500;
}

/* Catalog section */
.catalog-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.catalog-layout {
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 12px;
    margin-right: -12px;
}

/* Premium Scrollbar for Catalog */
.catalog-layout::-webkit-scrollbar {
    width: 6px;
}

.catalog-layout::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.catalog-layout::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
}

.catalog-layout::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
}

/* Product Card Dashboard */
.product-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-md);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.05);
}

.card-img-area {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    width: 100%;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.product-card:hover .card-img-area {
    background: rgba(0, 230, 118, 0.01);
    border-color: rgba(0, 230, 118, 0.15);
}

.card-fallback-icon {
    font-size: 36px;
    transition: transform 0.4s ease;
}

.product-card:hover .card-fallback-icon {
    transform: scale(1.15);
}

.card-tag {
    font-family: var(--font-brand);
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-brand);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    margin-bottom: 12px;
    height: 46px;
    /* double-line safety constraint */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.card-meta-item {
    font-size: 12.5px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.card-meta-item span:first-child {
    color: var(--text-muted);
}

.card-meta-item span:last-child {
    font-weight: 500;
    color: var(--text-primary);
}

.card-impact-badge {
    background: rgba(0, 230, 118, 0.06);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 12px;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.card-impact-badge strong {
    color: var(--color-primary);
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.card-price-area {
    display: flex;
    flex-direction: column;
}

.card-price-label {
    font-size: 11px;
    color: var(--text-muted);
}

.card-price-val {
    font-family: var(--font-brand);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
}

.card-price-val span {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    margin-right: 2px;
}

/* Active filter badges */
.active-filters-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.filter-badge {
    background: rgba(0, 176, 255, 0.08);
    border: 1px solid rgba(0, 176, 255, 0.2);
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-brand);
}

.filter-badge.family {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
}

.filter-badge-close {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 700;
    transition: var(--transition-smooth);
}

.filter-badge-close:hover {
    color: var(--text-primary);
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 6px 10px;
}

.btn-reset-filters:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Skeletons */
.family-card-skeleton {
    height: 180px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}

.product-card-skeleton {
    height: 380px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Specific elements adjustments for light mode */
[data-theme="light"] .stat-card {
    background: var(--bg-surface);
    border-color: var(--border-color);
}

[data-theme="light"] .family-card {
    background: var(--bg-surface);
}

[data-theme="light"] .product-card {
    background: var(--bg-surface);
}

[data-theme="light"] .card-img-area {
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .card-impact-badge {
    background: rgba(0, 200, 83, 0.06);
    border-color: rgba(0, 200, 83, 0.15);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .stats-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .stats-overview-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .catalog-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .families-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 16px;
    }

    .container {
        padding: 0 16px;
    }

    .products-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .related-grid {
        grid-template-columns: 1fr !important;
    }

    .actions-block {
        flex-direction: column;
        align-items: stretch;
    }

    .quantity-selector {
        justify-content: center;
    }
}

.btn-instagram-promo {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
    transition: var(--transition-smooth);
}

.btn-instagram-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
    filter: brightness(1.05);
    color: #ffffff;
}

.instagram-shortcut:hover {
    background: rgba(220, 39, 67, 0.1) !important;
    border-color: rgba(220, 39, 67, 0.3) !important;
    color: #e6683c !important;
    box-shadow: 0 0 12px rgba(220, 39, 67, 0.2);
}