﻿/* Variables CSS inspiradas en MercadoLibre y colores de Ovanbal */
:root {
    --primary-color: #3483fa;
    --primary-dark: #2968c8;
    --secondary-color: #00a650;
    --accent-color: #ff6900;
    --success-color: #00a650;
    --warning-color: #ffb000;
    --danger-color: #ff6900;
    --light-gray: #f5f5f5;
    --medium-gray: #e6e6e6;
    --dark-gray: #999999;
    --text-color: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e6e6e6;
    --white: #ffffff;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.15);
    --border-radius: 6px;
    --transition: all 0.25s ease;
    --max-width: 1440px;
}

/* Reset y estilos base */
* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 14px;
}

/* Layout principal estilo MercadoLibre */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.sidebar {
    background: var(--white);
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    display: none;
}

main {
    margin-left: 0;
    min-height: 100vh;
}

.top-row {
    background: var(--primary-color);
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
}

    .navbar-brand .logo {
        height: 32px;
        margin-right: 32px;
    }

.content {
    padding: 16px;
    min-height: calc(100vh - 54px);
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Navegación estilo MercadoLibre */
.navbar-dark {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: white !important;
    font-size: 18px;
    font-weight: 700;
}

.nav-scrollable {
    padding: 16px 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    color: var(--text-color) !important;
    padding: 8px 16px;
    border-radius: 0;
    margin: 0;
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
}

    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
        background-color: rgba(52, 131, 250, 0.04);
    }

    .nav-link i {
        margin-right: 8px;
        width: 16px;
        font-size: 16px;
    }

/* Página de inicio estilo MercadoLibre */
.home-hero {
    background: var(--white);
    padding: 20px 24px;
    text-align: center;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.hero-description {
    font-size: 16px;
    margin-bottom: 24px;
    color: var(--text-light);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-container {
    display: flex;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    outline: none;
    color: var(--text-color);
}

.search-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

    .search-button:hover {
        background: var(--primary-dark);
    }

/* Estadísticas */
.home-stats {
    background: var(--white);
    padding: 20px 24px;
    margin-bottom: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

    .stat-item h3 {
        font-size: 32px;
        color: var(--primary-color);
        margin: 0 0 4px 0;
        font-weight: 500;
    }

    .stat-item p {
        font-size: 14px;
        color: var(--text-light);
        margin: 0;
    }

/* Sección destacados */
.featured-section {
    max-width: var(--max-width);
    margin: 0 auto;
}

    .featured-section h2 {
        font-size: 24px;
        margin-bottom: 24px;
        color: var(--text-color);
        font-weight: 400;
    }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* Tarjetas de producto estilo MercadoLibre */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

    .product-card:hover {
        box-shadow: var(--shadow-hover);
    }

.product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    font-size: 12px;
    background: var(--light-gray);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.product-info {
    padding: 16px;
}

.product-name {
    font-size: 13px;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: var(--text-color);
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-brand {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.product-sku {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0 0 12px 0;
}

.product-price {
    margin-bottom: 8px;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 12px;
    margin-right: 8px;
}

.price-current {
    color: var(--text-color);
    font-size: 18px;
    font-weight: 400;
}

.product-stock {
    font-size: 11px;
}

    .product-stock.in-stock {
        color: var(--success-color);
    }

    .product-stock.out-of-stock {
        color: var(--text-muted);
    }

.product-link {
    display: block;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

    .product-link:hover {
        background: var(--primary-dark);
        color: var(--white);
    }

.view-all-container {
    text-align: center;
}

.view-all-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

    .view-all-button:hover {
        background: var(--primary-dark);
        color: var(--white);
    }

/* Página de productos estilo MercadoLibre */
.products-page {
    max-width: var(--max-width);
    margin: 0 auto;
}

.page-header {
    background: var(--white);
    padding: 24px;
    margin-bottom: 16px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

    .page-header h1 {
        font-size: 24px;
        color: var(--text-color);
        margin: 0 0 8px 0;
        font-weight: 400;
    }

    .page-header p {
        color: var(--text-light);
        font-size: 16px;
        margin: 0;
    }

.products-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
}

/* Filtros estilo MercadoLibre */
.filters-sidebar {
    background: var(--white);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 16px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

    .filters-header h3 {
        margin: 0;
        color: var(--text-color);
        font-weight: 600;
        font-size: 16px;
    }

.clear-filters {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
}

    .clear-filters:hover {
        color: var(--primary-dark);
    }

.filter-group {
    margin-bottom: 20px;
}

    .filter-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: var(--text-color);
        font-size: 14px;
    }

.filter-input,
.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
}

    .filter-input:focus,
    .filter-select:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(52, 131, 250, 0.1);
    }

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.apply-filters {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

    .apply-filters:hover {
        background: var(--primary-dark);
    }

/* Contenido de productos */
.products-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
}

.results-info {
    color: var(--text-light);
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .sort-options label {
        font-size: 14px;
        color: var(--text-color);
    }

.sort-select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--white);
}

.sort-direction {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

    .sort-direction:hover {
        background: var(--light-gray);
    }

.view-options {
    display: flex;
    gap: 4px;
}

.view-button {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 6px 8px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

    .view-button:hover,
    .view-button.active {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

/* Lista de productos */
.products-list {
    padding: 16px;
}

    .products-list.grid-view {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    .products-list.list-view .product-item {
        display: flex;
        border-bottom: 1px solid var(--border-color);
        padding: 16px 0;
        align-items: center;
    }

        .products-list.list-view .product-item:last-child {
            border-bottom: none;
        }

.product-item {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.grid-view .product-item {
    box-shadow: var(--shadow);
}

    .grid-view .product-item:hover {
        box-shadow: var(--shadow-hover);
    }

.list-view .product-item {
    box-shadow: none;
    border-radius: 0;
    background: transparent;
}

.list-view .product-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    margin-right: 16px;
}

.grid-view .product-image {
    height: 180px;
}

.product-details {
    padding: 16px;
    flex: 1;
}

.list-view .product-details {
    padding: 0;
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-catalog {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 4px 0;
}

.product-actions {
    margin-top: 12px;
}

.view-details-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

    .view-details-button:hover {
        background: var(--primary-dark);
        color: var(--white);
    }

.stock-icon {
    margin-right: 4px;
    font-size: 12px;
}

/* Paginación estilo MercadoLibre */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    border-top: 1px solid var(--border-color);
}

.page-button {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
    min-width: 36px;
    font-size: 14px;
}

    .page-button:hover:not(:disabled) {
        background: var(--light-gray);
    }

    .page-button.active {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .page-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.page-info {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 16px;
}

/* Sin resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.no-results h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-weight: 400;
}

.clear-filters-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    cursor: pointer;
    margin-top: 16px;
    transition: var(--transition);
    font-weight: 600;
}

    .clear-filters-button:hover {
        background: var(--primary-dark);
    }

/* Detalle del producto COMPACTO sin tabs */
.product-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    font-size: 12px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

    .breadcrumb a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

/* Layout compacto para impresión */
.product-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    padding: 24px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-image {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

    .main-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .main-image .no-image-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        color: var(--text-muted);
        font-size: 16px;
        background: var(--light-gray);
    }

.image-thumbnails {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

    .thumbnail.active {
        border-color: var(--primary-color);
    }

    .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Información principal compacta */
.product-info {
    display: grid;
    gap: 8px;
}

.product-title {
    font-size: 24px;
    color: var(--text-color);
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
}

.product-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

.meta-item {
    font-size: 13px;
    display: flex;
    justify-content: space-between;
}

    .meta-item strong {
        color: var(--text-color);
        font-weight: 600;
    }

.product-price-section {
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

    .product-price-section .price-original {
        display: block;
        font-size: 16px;
        color: var(--text-muted);
        text-decoration: line-through;
        margin-bottom: 4px;
    }

    .product-price-section .price-current {
        display: block;
        font-size: 32px;
        color: var(--text-color);
        font-weight: 300;
        margin-bottom: 8px;
    }

.discount-info {
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

.product-stock {
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
}

.stock-available {
    background: rgba(0, 166, 80, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 166, 80, 0.2);
    padding: 12px;
}

.stock-unavailable {
    background: rgba(153, 153, 153, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(153, 153, 153, 0.2);
    padding: 12px;
}

.product-description {
    padding: 16px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
}

    .product-description h3 {
        color: var(--text-color);
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: 600;
    }

    .product-description p {
        margin: 0;
        line-height: 1.4;
    }

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-button {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

    .action-button.primary {
        background: var(--primary-color);
        color: var(--white);
    }

        .action-button.primary:hover:not(:disabled) {
            background: var(--primary-dark);
        }

        .action-button.primary:disabled {
            background: var(--medium-gray);
            cursor: not-allowed;
        }

    .action-button.secondary {
        background: var(--white);
        color: var(--text-color);
        border: 1px solid var(--border-color);
    }

        .action-button.secondary:hover {
            background: var(--light-gray);
        }

/* Información técnica compacta sin tabs */
.product-details-section {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.detail-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

    .detail-card h3 {
        color: var(--text-color);
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
        border-bottom: 2px solid var(--secondary-color);
        padding-bottom: 8px;
    }

.spec-grid,
.technical-grid {
    display: grid;
    gap: 8px;
}

.spec-item,
.technical-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

    .spec-item:last-child,
    .technical-item:last-child {
        border-bottom: none;
    }

    .spec-item strong,
    .technical-item strong {
        color: var(--text-color);
        font-weight: 600;
        min-width: 120px;
    }

.dimensions-section {
    margin-top: 16px;
}

    .dimensions-section h4 {
        color: var(--text-color);
        margin: 0 0 12px 0;
        font-size: 14px;
        font-weight: 600;
    }

/* Vehículos compatibles compacto */
.vehicles-section {
    background: var(--light-gray);
    padding: 20px;
    border-radius: var(--border-radius);
}

    .vehicles-section h3 {
        color: var(--text-color);
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
        border-bottom: 2px solid var(--secondary-color);
        padding-bottom: 8px;
    }

.vehicles-grid {
    display: grid;
    gap: 16px;
}

.vehicle-brand-group h4 {
    color: var(--text-color);
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
}

.vehicles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.vehicle-item {
    background: var(--white);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    border: 1px solid var(--border-color);
}

    .vehicle-item strong {
        color: var(--text-color);
        font-weight: 600;
        flex: 1;
        min-width: 120px;
    }

.vehicle-year {
    background: var(--primary-color);
    color: var(--white);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.vehicle-engine,
.vehicle-version {
    font-size: 11px;
    color: var(--text-light);
}

.vehicles-show-more {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.show-more-button,
.show-less-button {
    background: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

    .show-more-button:hover,
    .show-less-button:hover {
        background: var(--primary-color);
        color: var(--white);
    }

    .show-more-button i,
    .show-less-button i {
        font-size: 12px;
    }

/* Productos relacionados compacto */
.related-products {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

    .related-products h3 {
        color: var(--text-color);
        margin: 0 0 16px 0;
        font-size: 18px;
        font-weight: 600;
    }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.related-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

    .related-item:hover {
        box-shadow: var(--shadow);
    }

.related-image {
    height: 120px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .related-image img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.related-info {
    padding: 12px;
}

    .related-info h4 {
        color: var(--text-color);
        margin: 0 0 8px 0;
        font-size: 13px;
        font-weight: 400;
        line-height: 1.3;
    }

.related-brand {
    color: var(--text-muted);
    font-size: 11px;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.related-price {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 12px 0;
}

.related-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 12px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
}

    .related-link:hover {
        background: var(--primary-dark);
        color: var(--white);
    }

/* Estados de carga */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--light-gray);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.not-found {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.not-found-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.not-found h2 {
    color: var(--text-color);
    margin-bottom: 12px;
    font-weight: 400;
}

.back-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-top: 16px;
    transition: var(--transition);
    font-weight: 600;
}

    .back-button:hover {
        background: var(--primary-dark);
        color: var(--white);
    }

/* Estilos para impresión */
@media print {
    .sidebar,
    .top-row,
    .product-actions,
    .related-products,
    .nav-scrollable {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
    }

    .product-detail {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }

    .product-header {
        grid-template-columns: 250px 1fr !important;
        gap: 20px !important;
        padding: 16px !important;
        page-break-inside: avoid;
    }

    .main-image {
        height: 200px !important;
    }

    .product-details-section {
        padding: 16px !important;
    }

    .details-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .detail-card {
        break-inside: avoid;
        margin-bottom: 16px;
    }

    body {
        background: white !important;
        font-size: 12px !important;
    }

    .breadcrumb {
        font-size: 10px !important;
    }

    .product-title {
        font-size: 18px !important;
    }

    .product-price-section .price-current {
        font-size: 24px !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        .sidebar.show {
            transform: translateX(0);
        }

    main {
        margin-left: 0;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .product-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .main-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 12px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .products-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .sort-options,
    .view-options {
        justify-content: center;
    }

    .product-header {
        padding: 16px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price-section .price-current {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

    .action-button {
        text-align: center;
        justify-content: center;
    }

    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .vehicles-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price-section .price-current {
        font-size: 24px;
    }

    .product-meta {
        grid-template-columns: 1fr;
    }

    .meta-item {
        flex-direction: column;
        gap: 4px;
    }
}
