/**
 * JaviCarros — estilos globais extras (extraídos das views Blade)
 * Organizado por seção; evitar duplicar regras aqui.
 */

/* --------------------------------------------------------------------------
   Layout global (antes em layouts/front.blade.php)
   -------------------------------------------------------------------------- */
/* Esconde bullets do Swiper (escopo no body com classe) */
body.jvc-swiper-pagination-hide .swiper-pagination-bullet,
body.jvc-swiper-pagination-hide .swiper-pagination-bullet-active {
    display: none;
}

/* --------------------------------------------------------------------------
   Listagens — ~95% da largura (home, busca, cards, loja, lojas)
   Combina com .themesflat-container onde o tema fixa width grande.
   -------------------------------------------------------------------------- */
.jvc-listing-wrap,
.sellers-wrap {
    width: 95%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}

.themesflat-container.jvc-listing-wrap {
    width: 95% !important;
    max-width: 100% !important;
}

/* Página /lojas: topo */
.sellers-wrap {
    padding-top: 2rem;
    padding-bottom: 0;
}

/* Modificadores de espaçamento vertical (sem style inline nas views) */
.jvc-listing-wrap--py-md {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.jvc-listing-wrap--pt-md {
    padding-top: 2rem;
}

.jvc-listing-wrap--pb-md {
    padding-bottom: 2rem;
}

.jvc-listing-wrap--py-lg {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.jvc-listing-wrap--pb-lg {
    padding-bottom: 3rem;
}

/* Seção com fundo (ex.: patrocinados na home) */
.jvc-listing-section--featured-bg {
    padding: 3rem 0;
    background: var(--bg-light);
}

/* Slot de banner central (728px) */
.jvc-banner-slot {
    max-width: 728px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.jvc-banner-slot__img {
    object-fit: scale-down;
    max-width: 728px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Estado vazio em grids de veículos */
.jvc-empty-listing {
    text-align: center;
}

.jvc-empty-listing__icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.jvc-empty-listing__title {
    color: var(--text-gray);
}

.jvc-empty-listing__text {
    color: var(--text-light);
}

@media (max-width: 575.98px) {
    .jvc-listing-wrap,
    .sellers-wrap {
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .sellers-wrap {
        padding-top: 2rem;
        padding-bottom: 0;
    }
}

/* Tema zera padding de .themesflat-container no mobile — restaura nas listagens */
@media (max-width: 991.98px) {
    .themesflat-container.jvc-listing-wrap {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --------------------------------------------------------------------------
   Lojas / sellers — página e filtros
   -------------------------------------------------------------------------- */

.sellers-hero-mp {
    border-left: 4px solid #df2818;
    padding-left: 1.25rem;
    margin-bottom: 1.25rem;
}

.sellers-hero-mp h2 {
    font-weight: 700;
    color: #1a2740;
    margin: 0;
}

.sellers-hero-mp p {
    margin: 0.35rem 0 0;
    color: #5c6478;
    font-size: 0.95rem;
}

.sellers-count-mp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #1a2740;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
}

.sellers-toolbar-mp {
    background: linear-gradient(135deg, #fafbfc 0%, #f3f5f8 100%);
    border: 1px solid #e8eaef;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 8px 24px rgba(26, 39, 64, 0.06);
}

.sellers-toolbar-mp label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

.sellers-toolbar-mp .form-control {
    border-radius: 10px;
    border: 1px solid #dde1e8;
    font-size: 0.9rem;
}

.btn-sellers-geo-mp {
    border-radius: 10px;
    background: #df2818;
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.btn-sellers-geo-mp:hover {
    background: #c52214;
    color: #fff;
}

.btn-sellers-reset-mp {
    border-radius: 10px;
    border: 1px solid #dde1e8;
    background: #fff;
    color: #374151;
    font-weight: 600;
    padding: 0.55rem 1rem;
}

.sellers-empty-state {
    background: #fafbfc;
    border: 1px dashed #dde1e8;
    border-radius: 16px;
}

/* --------------------------------------------------------------------------
   Lojas — cards marketplace
   -------------------------------------------------------------------------- */
.seller-card-mp__inner {
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(26, 39, 64, 0.06);
}

.seller-card-mp__link:hover .seller-card-mp__inner {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 39, 64, 0.12);
    border-color: #df281833;
}

.seller-card-mp__media {
    position: relative;
    background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
    padding: 1.25rem 0.75rem 1rem;
    border-bottom: 1px solid #f0f2f5;
}

.seller-card-mp__logo-wrap {
    min-height: 88px;
}

/* Logo: mesmos valores que estavam inline na view (storage / URL externa) */
.seller-card-mp__logo {
    padding: 15px 5px;
    border-radius: 15px;
    max-height: 80px;
    width: 100%;
    object-fit: scale-down;
}

.seller-card-mp__logo--placeholder {
    max-width: 308px;
    width: auto;
    max-height: none;
    object-fit: initial;
    filter: saturate(10%);
    opacity: 0.3;
    padding: 25px;
}

.seller-card-mp__distance {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1a2740;
    color: #fff;
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
    border-radius: 8px;
}

.seller-card-mp__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2740;
    line-height: 1.35;
    margin: 0;
}

.seller-card-mp__loc {
    font-size: 0.8rem;
    color: #5c6478;
    margin: 0;
}

.seller-card-mp__loc--muted {
    color: #9ca3af;
}

.seller-card-mp__badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #df2818;
    background: #fff0ee;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.seller-card-mp__cta {
    font-size: 0.82rem;
    font-weight: 700;
    color: #df2818;
}
