/* --- Estilos Gerais da Página BBrick --- */
.brick-container {
    padding-bottom: 100px;
    /* background-color: #f4f4f4; */ /* Removido - Agora é controlado no body */
}

/* --- Cabeçalho Preto --- */
.brick-header-black {
    background-color: #111; /* Preto */
    padding: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brick-logo {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.header-actions {
    display: flex;
    flex-grow: 1;
    gap: 1rem;
    align-items: center;
}

.search-form {
    flex-grow: 1;
    position: relative;
}

.search-form .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    width: 20px;
    height: 20px;
}

.search-form input {
    width: 100%;
    height: 44px;
    border-radius: 22px;
    border: none;
    padding: 0 20px 0 45px; /* Espaço para o ícone */
    background-color: #222;
    color: #eee;
    font-size: 1rem;
}

.search-form input::placeholder { color: #888; }

.menu-button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

/* --- Banner --- */
.banner-container {
    width: 100%; /* O Swiper gerencia a largura */
    margin-bottom: 1.5rem;
    height: 150px; /* Altura fixa para o banner */
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra o slide sem distorcer */
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: background-color 0.2s, width 0.2s;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 5px;
    background-color: #fff;
}

/* --- Conteúdo Principal --- */
.brick-content {
    padding: 0 1rem;
}

/* --- Grid de Anúncios --- */
.anuncios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Duas colunas */
    gap: 1rem; 
}

.anuncio-card-white {
    background: #fff; /* Card branco */
    color: #333; /* Texto escuro */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none; /* Remove sublinhado do link */
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra */
}

.anuncio-card-white:hover {
    transform: translateY(-5px);
}

.anuncio-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.anuncio-card-body {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.anuncio-card-body h3 {
    font-size: 0.9rem; /* Título menor */
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anuncio-card-body .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1976D2; /* Azul para o preço */
    margin-bottom: 0.5rem;
}

.selos-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.selo-tag-card {
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    font-size: 0.6rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

.card-divider {
    border: none;
    height: 1px;
    background-color: #eee;
    margin: auto 0 0.8rem 0;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto; /* Empurra para o final do card */
}

.seller-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.seller-details {
    display: flex;
    flex-direction: column;
}

.seller-name {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
}

.star-rating {
    font-size: 0.7rem;
    color: #FFC107; /* Amarelo para estrelas */
}

/* --- Estilos para o Formulário de Anúncio --- */
.selos-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.selo-item input[type="checkbox"] {
    display: none; /* Esconde o checkbox padrão */
}

.selo-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: filter 0.2s;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.selo-item input[type="checkbox"]:not(:checked) + .selo-tag {
    filter: grayscale(70%) brightness(0.8);
}

.selo-item input[type="checkbox"]:checked + .selo-tag {
    filter: none;
    box-shadow: 0 0 0 2px #fff; /* Destaque quando selecionado */
}

.brick-marketplace {
    padding: 1rem 1rem 6.5rem;
}

.brick-hero-panel,
.brick-publish-card,
.brick-empty-state {
    background: linear-gradient(180deg, #151d25 0%, #0d1318 100%);
    border: 1px solid #283541;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.brick-hero-panel {
    padding: 1.3rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.brick-hero-panel h1,
.brick-section-head h2 {
    margin: 0;
    color: #fff;
}

.brick-hero-panel p {
    margin: 0.55rem 0 0;
    color: #98a7b4;
    max-width: 540px;
    line-height: 1.6;
}

.brick-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #67e2d4;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.brick-publish-card {
    padding: 1.2rem;
    margin-bottom: 1.1rem;
}

.brick-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.brick-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.brick-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.brick-field span {
    color: #8fa0ad;
    font-size: 0.82rem;
    font-weight: 600;
}

.brick-field input,
.brick-field textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid #31414e;
    background: #0d1318;
    color: #fff;
    padding: 0.9rem 1rem;
}

.brick-field textarea {
    resize: vertical;
    min-height: 120px;
}

.brick-field-full {
    grid-column: 1 / -1;
}

.brick-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.brick-count-pill {
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    border: 1px solid #2f3f4b;
    color: #dbe4eb;
    font-size: 0.82rem;
}

.brick-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
}

.brick-card-enhanced {
    border: 1px solid rgba(34, 46, 57, 0.7);
    background: linear-gradient(180deg, #ffffff 0%, #f3f6f8 100%);
}

.brick-description {
    color: #54606b;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 0.9rem;
}

.brick-image-placeholder {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #d8e1e8 0%, #b7c5cf 100%);
    color: #32404c;
    font-weight: 700;
}

.brick-meta {
    font-size: 0.72rem;
    color: #73808a;
}

.brick-empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #dce3e9;
}

.brick-empty-state span {
    color: #8fa0ad;
}

@media (max-width: 720px) {
    .brick-hero-panel,
    .brick-section-head,
    .brick-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .brick-form-grid {
        grid-template-columns: 1fr;
    }
}