/* public/css/indmotos.css */

/* ---------------------------------------------------- */
/* 1. Definição das Cores do Indmotos (Primary e Secondary) */
/* ---------------------------------------------------- */

:root {
    /* Cor Primária do Indmotos: #dc373e (vermelho/vinho) */
    --bs-primary: #dc373e; 
    
    /* Um tom mais escuro para o hover/ativo */
    --bs-primary-rgb: 220, 55, 62; /* Equivalente RGB de #dc373e */
    
    /* Cor Secundária (Fundo, Texto Claro): #FFFFFF (branco) */
    --bs-secondary: #FFFFFF;
    
    /* Cor para o texto sobre fundos escuros, se necessário */
    --bs-light: #FFFFFF;
}

/* ---------------------------------------------------- */
/* 2. Estilo dos Botões Primários */
/* ---------------------------------------------------- */

.btn-primary {
    /* Garante que o texto dos botões primários seja branco */
    --bs-btn-color: #FFFFFF;
    
    /* Define o hover/ativo para um tom um pouco mais escuro para feedback visual */
    --bs-btn-hover-bg: #b92f36; /* Um tom escuro de #dc373e */
    --bs-btn-active-bg: #a3292e;
    --bs-btn-border-color: #dc373e;
}

/* Estilos para o Banner LGPD */
#lgpd-consent-banner {
    z-index: 9999; /* Garante que fique acima de todos os outros elementos */
    opacity: 0.95;
    border-top: 1px solid #495057;
}
/* Alinhamento para telas pequenas */
#lgpd-consent-banner .container {
    max-width: 100%;
}

/* Estilos Específicos para a Home */
.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, #b92f36 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 0 0 20px 20px;
}

.seller-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-banner {
    height: 120px;
    background-color: #e9ecef;
    background-size: cover;
    background-position: center;
    position: relative; /* Cria um contexto de empilhamento */
    z-index: 1; /* Define uma camada base */
}

/* Fallback visual se não tiver banner */
.card-banner.no-img {
    background: linear-gradient(45deg, #e9ecef 25%, #f8f9fa 25%, #f8f9fa 50%, #e9ecef 50%, #e9ecef 75%, #f8f9fa 75%, #f8f9fa 100%);
    background-size: 20px 20px;
}

/* CORREÇÃO APLICADA AQUI */
.card-profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    object-fit: cover;
    margin-top: -45px; 
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* Traz a imagem para frente */
    position: relative;
    z-index: 10; 
}

/* CORREÇÃO APLICADA AQUI TAMBÉM */
.card-profile-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: -45px;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    /* Traz o placeholder para frente */
    position: relative;
    z-index: 10;
}

.action-btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 600;
}

/* Estilos para o Catálogo */
.catalog-header {
    position: relative;
    margin-bottom: 3rem;
    background-color: #f8f9fa;
}

.catalog-banner {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
}

.profile-img-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: #fff;
    padding: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.vendedor-info {
    padding-top: 70px;
    padding-bottom: 2rem;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.vendedor-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
}

.vendedor-tagline {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

.social-buttons {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-buttons .btn {
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

.btn-instagram-img {
    background-color: transparent;
    border: 2px solid #ccc;
    padding: 8px 15px;
    transition: all 0.2s ease;
}

.btn-instagram-img:hover {
    border-color: #dc2743;
}

.btn-instagram-img img {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

/* Moto Card Design */
.moto-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.moto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.moto-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.moto-card:hover .card-img-top {
    transform: scale(1.05);
}

.moto-card .card-title {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.moto-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #198754;
}

/* Media queries para responsividade */
@media (min-width: 768px) {
    .catalog-header {
        margin-bottom: 5rem;
    }
    .profile-img-container {
        left: 100px;
        transform: none;
        bottom: -60px;
    }
    .vendedor-info {
        padding-left: 280px;
        padding-top: 2rem;
        text-align: left;
    }
    .vendedor-name {
        font-size: 2.5rem;
    }
    .social-buttons {
        justify-content: flex-start;
    }
}