/* IDENTIDADE VISUAL NEGOCIAR PECAS */

.hero {
    background: linear-gradient(120deg, #363435, #4a4647);
}

.hero .eyebrow,
.section-heading .eyebrow {
    color: #c53336;
}

.hero h1 span {
    color: #e34b4e;
}

.hero-visual .visual-card {
    background: linear-gradient(145deg, #4a4647, #292829);
    border: 1px solid rgba(197,51,54,.55);
    border-radius: 18px;
}

.visual-label,
.visual-bottom {
    color: #ef5558;
}

.visual-icon {
    color: #ef5558;
}

.np-home-search {
    border-radius: 15px;
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.np-home-search-keyword:focus-within,
.np-home-search-filter:focus-within {
    border-color: #c53336;
    box-shadow: 0 0 0 3px rgba(197,51,54,.13);
}

.np-home-search-main button {
    background: #c53336;
    color: #ffffff;
    font-weight: 800;
    transition: .2s ease;
}

.np-home-search-main button:hover {
    background: #a9272a;
    color: #ffffff;
    transform: translateY(-1px);
}

.np-home-search-footer a {
    color: #c53336;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e7e3e3;
    border-radius: 14px;
    transition: .2s ease;
}

.category-card:hover {
    border-color: #c53336;
    box-shadow: 0 10px 25px rgba(54,52,53,.09);
    transform: translateY(-3px);
}

.public-listing-card {
    border: 1px solid #e7e3e3;
    border-radius: 14px;
    overflow: hidden;
    transition: .2s ease;
}

.public-listing-card:hover {
    border-color: #d9a0a1;
    box-shadow: 0 12px 28px rgba(54,52,53,.10);
}

.public-listing-info > strong {
    color: #c53336;
}

.listing-category {
    background: #fff0f0;
    color: #a9272a;
}

.public-listing-info .secondary-link {
    border-color: #e2dada;
    border-radius: 8px;
    transition: .2s ease;
}

.public-listing-info .secondary-link:hover {
    border-color: #c53336;
    color: #a9272a;
}

.how-step {
    border-radius: 14px;
    transition: .2s ease;
}

.how-step:hover {
    border-color: #d9a0a1;
    box-shadow: 0 8px 22px rgba(54,52,53,.07);
}

.how-step .num {
    background: #c53336;
    color: #ffffff;
}

.seller-section {
    background: #363435;
    border-radius: 16px;
}

.seller-section .eyebrow {
    color: #ef5558;
}

.seller-section h2 {
    color: #ffffff;
}

.seller-section p {
    color: #e5e1e1;
}

.seller-section .seller-button {
    background: #c53336;
    color: #ffffff;
    border-radius: 9px;
    transition: .2s ease;
}

.seller-section .seller-button:hover {
    background: #a9272a;
    filter: none;
}

@media (max-width: 600px) {
    .hero {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .np-home-search {
        border-radius: 12px;
    }

    .seller-section {
        border-radius: 12px;
    }
}

/* ===== ETAPA 2: REFINAMENTO VISUAL ===== */

/* Pesquisa */

.np-home-search-main button {
    background: #c53336 !important;
    color: #ffffff !important;
    border: 1px solid #c53336 !important;
    font-weight: 800;
}

.np-home-search-main button:hover {
    background: #a9272a !important;
    color: #ffffff !important;
    border-color: #a9272a !important;
    transform: translateY(-1px);
}

.np-home-search-keyword:focus-within,
.np-home-search-filter:focus-within {
    border-color: #c53336 !important;
    box-shadow: 0 0 0 3px rgba(197,51,54,.12) !important;
}

.np-home-search-footer a,
.np-home-search-footer a:hover {
    color: #b52c30 !important;
}

/* Categorias */

.category-card {
    background: #ffffff;
    border: 1px solid #e7e3e3;
    border-radius: 15px;
    padding: 26px;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.category-card:hover {
    border-color: #c53336;
    box-shadow: 0 12px 28px rgba(54,52,53,.09);
    transform: translateY(-3px);
}

.category-card strong {
    color: #363435;
    font-size: 16px;
}

.category-card small {
    color: #69717c;
    line-height: 1.5;
}

/* Vitrine de anúncios */

.listing-grid {
    gap: 18px;
}

.listing-card,
.public-listing-card {
    background: #ffffff;
    border: 1px solid #e7e3e3;
    border-radius: 15px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.listing-card:hover,
.public-listing-card:hover {
    border-color: #d9a0a1;
    box-shadow: 0 12px 26px rgba(54,52,53,.10);
    transform: translateY(-3px);
}

/* Como funciona */

.how-step {
    background: #ffffff;
    border: 1px solid #e7e3e3;
    border-radius: 15px;
    padding: 28px;
}

.how-step .num {
    background: #c53336 !important;
    color: #ffffff !important;
}

.how-step h3 {
    color: #363435;
}

.how-step p {
    color: #69717c;
    line-height: 1.7;
}

/* Área de vendedores */

.seller-section {
    background: #363435;
    border-radius: 16px;
}

.seller-section .seller-button {
    background: #c53336 !important;
    color: #ffffff !important;
    border: 1px solid #c53336;
}

.seller-section .seller-button:hover {
    background: #a9272a !important;
    color: #ffffff !important;
}

/* Acessibilidade */

.np-home-search button:focus-visible,
.np-home-search a:focus-visible,
.category-card a:focus-visible,
.seller-section a:focus-visible {
    outline: 3px solid #c53336;
    outline-offset: 3px;
}

/* Celulares */

@media (max-width: 600px) {
    .category-card {
        padding: 21px;
    }

    .listing-grid {
        gap: 14px;
    }

    .how-step {
        padding: 22px;
    }

    .seller-section {
        padding: 24px;
        border-radius: 12px;
    }
}


/* ===== ETAPA 3: VITRINE VAZIA ===== */

.listings-home .vazio {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 28px;
    margin: 24px 0 12px;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid #eadede;
    border-left: 5px solid #c53336;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff, #faf6f6);
    box-shadow: 0 10px 28px rgba(54,52,53,.06);
}

.listings-home .vazio h3 {
    grid-column: 1;
    margin: 0;
    color: #363435;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.3;
}

.listings-home .vazio p {
    grid-column: 1;
    margin: 0;
    max-width: 650px;
    color: #69717c;
    font-size: 15px;
    line-height: 1.7;
}

.listings-home .vazio .primary-link {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: end;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    border: 1px solid #c53336;
    border-radius: 9px;
    background: #c53336;
    color: #ffffff !important;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease, transform .2s ease;
}

.listings-home .vazio .primary-link:hover {
    background: #a9272a;
    border-color: #a9272a;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.listings-home .vazio .primary-link:focus-visible {
    outline: 3px solid #c53336;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .listings-home .vazio {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 23px;
    }

    .listings-home .vazio h3,
    .listings-home .vazio p,
    .listings-home .vazio .primary-link {
        grid-column: 1;
        grid-row: auto;
    }

    .listings-home .vazio .primary-link {
        justify-self: start;
        white-space: normal;
    }
}


/* ===== HERO IMAGE NEGOCIAR PECAS ===== */

.hero-visual .visual-card {
    background-color: #292829 !important;
    background-image:
        linear-gradient(
            180deg,
            rgba(41,40,41,.12) 0%,
            rgba(41,40,41,.38) 48%,
            rgba(41,40,41,.94) 100%
        ),
        url("../assets/hero/negociar-pecas-hero.png") !important;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 38%;
    border: 1px solid rgba(197,51,54,.75);
    overflow: hidden;
}

.visual-card .visual-icon {
    display: none !important;
}

.visual-card h2,
.visual-card p {
    text-shadow: 0 2px 12px rgba(0,0,0,.75);
}

.visual-card .visual-line {
    background: #c53336;
}

/* ===== FIM HERO IMAGE ===== */


/* ===== REFINO CARD HERO V2 ===== */

.hero-visual {
    min-width: 340px;
}

.hero-visual .visual-card {
    width: 360px !important;
    max-width: 100% !important;
    min-height: 390px !important;
    padding: 30px 24px !important;
    box-sizing: border-box;
    border-radius: 24px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-visual .visual-card > * {
    position: relative;
    z-index: 2;
}

.hero-visual .visual-card h2,
.hero-visual .visual-card p {
    display: block;
    width: fit-content;
    max-width: 100%;
    background: rgba(15, 15, 15, .78);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .55);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .9);
}

.hero-visual .visual-card h2 {
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 800;
    color: #fff;
    margin: 8px auto;
}

.hero-visual .visual-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    margin: 0 auto 12px;
}

.hero-visual .visual-card .visual-label,
.hero-visual .visual-card .visual-bottom {
    background: rgba(0, 0, 0, .78);
    padding: 7px 13px;
    border-radius: 30px;
    text-shadow: 0 2px 8px #000;
    font-weight: 800;
}

.hero-visual .visual-card .visual-line {
    width: 64px;
    height: 3px;
    background: #ff353b;
    box-shadow: 0 0 12px rgba(255, 59, 63, .55);
}

@media (max-width: 980px) {
    .hero-visual {
        min-width: 0;
    }

    .hero-visual .visual-card {
        width: 100% !important;
        max-width: 360px !important;
        min-height: 350px !important;
    }
}

@media (max-width: 560px) {
    .hero-visual .visual-card {
        min-height: 320px !important;
        padding: 24px 18px !important;
    }

    .hero-visual .visual-card h2 {
        font-size: 1.55rem;
    }
}

/* ===== FIM REFINO CARD HERO V2 ===== */


/* ===== ACABAMENTO FINAL HERO V3 ===== */

/* Título mais equilibrado, preferencialmente em duas linhas */

.hero-visual .visual-card h2 {
    font-size: 1.48rem !important;
    line-height: 1.2 !important;
    max-width: 310px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    margin: 8px auto 10px !important;
    text-align: center;
    text-wrap: balance;
    background: rgba(15, 15, 15, .52) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .32);
    color: #fff !important;
}

/* Descrição mais leve */

.hero-visual .visual-card p {
    background: rgba(15, 15, 15, .43) !important;
    border: 1px solid rgba(255, 255, 255, .10) !important;
    border-radius: 10px;
    padding: 9px 12px !important;
    font-size: .94rem !important;
    line-height: 1.45 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
    color: #fff !important;
}

/* Identificação da marca */

.hero-visual .visual-card .visual-label,
.hero-visual .visual-card .visual-bottom {
    background: rgba(0, 0, 0, .58) !important;
    border: 1px solid rgba(255, 255, 255, .10);
    color: #ff4147 !important;
    letter-spacing: .13em;
}

/* Manter assinatura vermelha */

.hero-visual .visual-card .visual-line {
    background: #ff353b !important;
    box-shadow: 0 0 10px rgba(255, 53, 59, .4);
}

/* Ajuste para celulares */

@media (max-width: 560px) {
    .hero-visual .visual-card h2 {
        font-size: 1.35rem !important;
        max-width: 290px !important;
    }

    .hero-visual .visual-card p {
        font-size: .88rem !important;
    }
}

/* ===== FIM ACABAMENTO FINAL HERO V3 ===== */


/* NP HOME CARDS COMPACTOS */

.listings-home .listing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.listings-home .public-listing-card {
    min-width: 0;
    border-radius: 12px;
}

.listings-home .public-listing-image {
    height: auto;
    aspect-ratio: 16 / 10;
    background: #f2f3f5;
}

.listings-home .public-listing-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.listings-home .public-listing-info {
    padding: 12px;
}

.listings-home .listing-category {
    font-size: 9px;
    padding: 3px 7px;
}

.listings-home .public-listing-info h2 {
    font-size: 14px;
    line-height: 1.35;
    margin: 7px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
}

.listings-home .public-listing-info p {
    font-size: 11px;
    margin: 6px 0;
}

.listings-home .public-listing-info > strong {
    font-size: 19px;
    margin: 8px 0 10px;
}

.listings-home .public-listing-info .secondary-link {
    padding: 8px;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .listings-home .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .listings-home .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .listings-home .public-listing-info {
        padding: 10px;
    }

    .listings-home .public-listing-info h2 {
        font-size: 13px;
    }

    .listings-home .public-listing-info > strong {
        font-size: 17px;
    }
}

@media (max-width: 380px) {
    .listings-home .listing-grid {
        grid-template-columns: 1fr;
    }
}

/* FIM NP HOME CARDS COMPACTOS */

