/* Página /leiloes — cards alinhados ao laboratorio/leiloes (lote-card) */

.leiloes-page {
    --leiloes-primary: #71130d;
    --leiloes-primary-dark: #5a0f0a;
}

.leiloes-page .leiloes-red-gradient {
    background: linear-gradient(135deg, #71130d 0%, #8b0000 100%);
}

.leiloes-page .leiloes-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Hero — imagem full-bleed com fade inferior (conceito MGI Leilões) */
.leiloes-page .leiloes-hero {
    position: relative;
    width: 100%;
    min-height: 28rem;
    height: clamp(32rem, 72vh, 54.375rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -4rem;
    padding: 5.5rem 1.25rem 3.5rem;
}

@media (min-width: 640px) {
    .leiloes-page .leiloes-hero {
        margin-top: -6rem;
        padding: 7rem 2rem 4rem;
    }
}

.leiloes-page .leiloes-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.leiloes-page .leiloes-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.38) 0%,
        rgba(0, 0, 0, 0.12) 28%,
        transparent 48%,
        rgba(249, 249, 249, 0.55) 78%,
        #f9f9f9 100%
    );
}

.leiloes-page .leiloes-hero__inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.leiloes-page .leiloes-hero__title {
    margin: 0;
    font-family: inherit;
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.leiloes-page .leiloes-hero__lead {
    margin: 1rem auto 0;
    max-width: 42rem;
    font-size: clamp(0.95rem, 2vw, 1.125rem);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

/* Faixa — acesso à Minha Área (entre hero e busca) */
.leiloes-page .leiloes-area-access {
    position: relative;
    z-index: 20;
    margin-top: -1.25rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .leiloes-page .leiloes-area-access {
        margin-top: -1.75rem;
    }
}

.leiloes-page .leiloes-area-access__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(175, 16, 26, 0.12);
    background: linear-gradient(135deg, #fff 0%, #fff8f7 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

@media (min-width: 768px) {
    .leiloes-page .leiloes-area-access__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }
}

.leiloes-page .leiloes-area-access__copy {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}

.leiloes-page .leiloes-area-access__icon {
    flex-shrink: 0;
    color: var(--leiloes-primary);
    font-size: 1.5rem;
}

.leiloes-page .leiloes-area-access__text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--leiloes-on-surface, #1a1a1a);
}

.leiloes-page .leiloes-area-access__text strong {
    color: var(--leiloes-primary);
    font-weight: 800;
}

.leiloes-page .leiloes-area-access__actions {
    flex-shrink: 0;
}

.leiloes-page .leiloes-area-access__btn {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    cursor: pointer;
    border: none;
}

@media (min-width: 768px) {
    .leiloes-page .leiloes-area-access__btn {
        width: auto;
        white-space: nowrap;
    }
}

.leiloes-page .leiloes-area-access__btn--primary {
    background: linear-gradient(to right, var(--leiloes-primary), #d32f2f);
    color: #fff;
    box-shadow: 0 4px 14px rgba(175, 16, 26, 0.25);
}

.leiloes-page .leiloes-area-access__btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(175, 16, 26, 0.32);
    opacity: 0.95;
}

.leiloes-page .no-scrollbar::-webkit-scrollbar {
    display: none;
}

.leiloes-page .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.leiloes-page .material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    line-height: 1;
}

#new-home-root .leiloes-page .btn-favorito.is-active .material-symbols-outlined {
    color: var(--leiloes-primary) !important;
}

.leiloes-page .btn-favorito.is-active .material-symbols-outlined {
    color: var(--leiloes-primary);
}

.leiloes-page .btn-favorito.is-active {
    border-color: var(--leiloes-primary);
    background: #fff5f5;
}

.leiloes-page .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.leiloes-page .carousel-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.leiloes-page .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--leiloes-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.leiloes-page .has-carousel:hover .carousel-btn,
.leiloes-page .has-carousel:focus-within .carousel-btn {
    opacity: 1;
}

.leiloes-page .carousel-btn:hover {
    transform: translateY(-50%) scale(1.06);
}

.leiloes-page .carousel-prev {
    left: 10px;
}

.leiloes-page .carousel-next {
    right: 10px;
}

.leiloes-page .carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

.leiloes-page .carousel-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.leiloes-page .carousel-dot.is-active {
    background: #fff;
    transform: scale(1.15);
}

.leiloes-page .carousel-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(15, 23, 42, 0.55);
    padding: 5px 9px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.leiloes-page .lote-card .thumb.has-carousel .thumb-timer,
.leiloes-page .lote-card .thumb.has-carousel .carousel-counter {
    bottom: 44px;
}

.leiloes-page .lote-card {
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.leiloes-page .lote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(113, 19, 13, 0.1), 0 24px 48px rgba(15, 23, 42, 0.1);
    border-color: rgba(113, 19, 13, 0.22);
}

.leiloes-page .lote-card .thumb {
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
}

.leiloes-page .lote-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.leiloes-page .lote-card:hover .thumb:not(.has-carousel) img,
.leiloes-page .lote-card:hover .thumb.has-carousel .carousel-slide.is-active img {
    transform: scale(1.06);
}

.leiloes-page .lote-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--leiloes-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.leiloes-page .lote-card .badge.closed {
    background: #991b1b;
}

.leiloes-page .lote-card .badge.soon {
    background: #5f5e5e;
}

.leiloes-page .lote-card .chip-cat {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    max-width: 45%;
    padding: 7px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--leiloes-primary-dark);
    background: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.leiloes-page .lote-card .thumb-timer {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.leiloes-page .lote-card .content {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.leiloes-page .lote-card .leilao-tag {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--leiloes-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.leiloes-page .lote-card .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.leiloes-page .lote-card .card-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: #111827;
    flex: 1;
    min-width: 0;
}

.leiloes-page .lote-card:hover .card-head h3 {
    color: var(--leiloes-primary);
}

.leiloes-page .lote-card .btn-favorito {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.leiloes-page .lote-card .card-location {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.leiloes-page .lote-card .card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leiloes-page .lote-card .spec-pill {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 5px 10px;
    border-radius: 6px;
}

.leiloes-page .lote-card .spec-pill.accent {
    color: var(--leiloes-primary-dark);
    background: rgba(113, 19, 13, 0.06);
    border-color: rgba(113, 19, 13, 0.15);
}

.leiloes-page .lote-card .summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.leiloes-page .lote-card .card-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leiloes-page .lote-card .price-old {
    font-size: 12px;
    color: #94a3b8;
    text-decoration: line-through;
}

.leiloes-page .lote-card .price-lance {
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 800;
    color: var(--leiloes-primary);
    letter-spacing: -0.02em;
    word-break: break-word;
}

.leiloes-page .lote-card .price-lance strong {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    margin-right: 4px;
}

.leiloes-page .lote-card .card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.leiloes-page .lote-card .btn-link-detalhes {
    font-size: 13px;
    font-weight: 600;
    color: var(--leiloes-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.leiloes-page .lote-card .btn-participar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #71130d, #5a0f0a);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(113, 19, 13, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
}

.leiloes-page .lote-card .meta-icons {
    list-style: none;
    margin: 0;
    padding: 12px 0 0;
    border-top: 1px solid #f1f5f9;
    display: grid;
    gap: 8px;
}

.leiloes-page .lote-card .meta-icons li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    line-height: 1.4;
}

.leiloes-page .lote-card .meta-icons .material-symbols-outlined {
    font-size: 18px;
    color: var(--leiloes-primary);
    flex-shrink: 0;
}

.leiloes-page .leiloes-grid-empty,
.leiloes-page .leiloes-grid-error {
    grid-column: 1 / -1;
}

@media (max-width: 639px) {
    .leiloes-page .lote-card .card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .leiloes-page .lote-card .btn-participar,
    .leiloes-page .lote-card .btn-link-detalhes {
        justify-content: center;
        width: 100%;
    }
}
