/* Layout front - sidebar, filtros, grid de leiloes */

.lpb-page {
    background: #f8f9fa;
    min-height: calc(100vh - var(--nav-height, 85px));
    font-size: 0.95rem;
    line-height: 1.5;
}

.lpb-page p,
.lpb-page li,
.lpb-page label {
    word-break: normal;
    overflow-wrap: break-word;
}

/* Filtro de categorias — quadros rm-cat (home) */
.lpb-page .rm-cats {
    --rm-cat-accent: var(--brand-primary, #c4899a);
    --rm-cat-accent-bg: var(--brand-primary-soft, #f6e8ec);
    --rm-cat-label: #6b7280;
    --rm-cat-border: #ececec;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 1.75rem;
}

.lpb-page .rm-cats a.rm-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 148px;
    padding: 22px 12px 18px;
    background: #fff;
    border: 1px solid var(--rm-cat-border);
    border-radius: 18px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-decoration: none !important;
    color: var(--rm-cat-label) !important;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lpb-page .rm-cats a.rm-cat:not(.is-empty):hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lpb-page .rm-cats a.rm-cat.is-active {
    border-color: var(--rm-cat-accent);
    box-shadow: 0 0 0 1px var(--rm-cat-accent);
}

.lpb-page .rm-cats .rm-cat__ic {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 16px;
    background: var(--rm-cat-accent-bg);
    color: var(--rm-cat-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lpb-page .rm-cats .rm-cat__ic svg {
    display: block;
    flex-shrink: 0;
}

.lpb-page .rm-cats .rm-cat__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--rm-cat-accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpb-page .rm-cats .rm-cat__label {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--rm-cat-label);
}

@media (max-width: 991.98px) {
    .lpb-page .rm-cats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .lpb-page .rm-cats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .lpb-page .rm-cats a.rm-cat {
        min-height: 136px;
        padding: 18px 10px 14px;
    }

    .lpb-page .rm-cats .rm-cat__ic {
        width: 68px;
        height: 68px;
        border-radius: 14px;
    }

    .lpb-page .rm-cats .rm-cat__label {
        font-size: 0.82rem;
    }
}

.lpb-filter-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 20px;
}

.lpb-filter-box label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.35rem;
}

.lpb-tabs {
    border-bottom: 2px solid #e0e0e0;
    flex-wrap: wrap;
    gap: 0;
}

.lpb-tabs .nav-link {
    border: none !important;
    border-radius: 0 !important;
    color: #666 !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 16px !important;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
}

.lpb-tabs .nav-link.active {
    color: var(--brand-primary) !important;
    border-bottom: 3px solid var(--brand-primary) !important;
    background: transparent !important;
}

/* Grid de leiloes - 3 por linha em desktop */
.lpb-leiloes-grid {
    margin-top: 0.5rem;
}

.lpb-leilao-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
    height: 100%;
}

.lpb-leilao-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lpb-leilao-card-img {
    position: relative;
    height: 160px;
    background: #eef1f4;
    overflow: hidden;
}

.lpb-leilao-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lpb-leilao-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary, #c4899a);
    font-size: 2.5rem;
}

.lpb-leilao-card .lpb-leilao-card-placeholder .bi,
.lpb-leilao-card .lpb-leilao-dates .bi,
.lpb-leilao-card .stat-pill .bi {
    color: var(--brand-primary, #c4899a);
}

.lpb-leilao-card .lpb-share-btn .bi {
    color: #fff;
}

.lpb-leilao-card-img .lpb-badge-aberto,
.lpb-leilao-card-img .lpb-badge-encerrado {
    position: absolute;
    top: 10px;
    right: 10px;
}

.lpb-leilao-card-body {
    padding: 16px;
}

.lpb-leilao-card-meta {
    font-size: 0.8rem;
    line-height: 1.4;
}

.lpb-badge-aberto {
    background: var(--brand-primary, #c4899a);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.lpb-badge-encerrado {
    background: #95a5a6;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.lpb-badge-soft {
    background: #f1f3f5;
    color: #495057;
    font-weight: 500;
    font-size: 0.75rem;
    border: 1px solid #dee2e6;
}

.lpb-leilao-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: none;
    letter-spacing: normal;
}

.lpb-leilao-dates {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
}

.lpb-leilao-dates li + li {
    margin-top: 4px;
}

.lpb-leilao-dates strong {
    color: #333;
    font-weight: 600;
}

.lpb-vendedores {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 25px;
}

.lpb-vendedor-logo {
    height: 60px;
    max-width: 120px;
    object-fit: contain;
}

.lpb-newsletter {
    background: var(--brand-primary, #c4899a);
    color: #fff;
    border-radius: 6px;
    padding: 30px;
}

.lpb-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.lpb-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 15px 0;
}

.lpb-share-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
}

.lpb-share-wa { background: #25d366; }
.lpb-share-fb { background: #1877f2; }
.lpb-share-em { background: #666; }

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: #888;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .lpb-leilao-card-img {
        height: 140px;
    }
}

@media (max-width: 575.98px) {
    .lpb-tabs .nav-link {
        font-size: 0.8rem;
        padding: 8px 12px !important;
    }
}
