/* ============================================================
   detalhe_produto.css
   Página de detalhe do anúncio/produto - padrão OLX Max
   Sem FlexSlider: galeria simples, estável e sem dependência de init.js
   ============================================================ */

body.olx-detalhe-body {
    background: var(--ge-auto-c238bd49806a);
}

.olx-detalhe-main {
    background: linear-gradient(180deg, var(--ge-auto-6aaa006dc095) 0%, var(--ge-auto-c238bd49806a) 55%);
    padding: 24px 20px 54px;
    min-height: 720px;
}

.olx-detalhe-container {
    width: min(1320px, 100%);
    margin: 0 auto;
}

.olx-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
    color: var(--ge-auto-713f92a19c1c);
    font-size: 13px;
    font-weight: 800;
}

.olx-detail-breadcrumb a {
    color: var(--ge-auto-490b6bd1f3c0) !important;
    text-decoration: none;
}

.olx-detail-breadcrumb a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.olx-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

.olx-detail-left,
.olx-detail-side {
    display: grid;
    gap: 18px;
}

.olx-detail-card {
    background: var(--ge-auto-6aaa006dc095);
    border: 1px solid var(--ge-auto-e1b5fd9b2a98);
    border-radius: 22px;
    box-shadow: 0 12px 34px var(--ge-auto-b245811c2925);
    overflow: hidden;
}

.olx-detail-card h2 {
    margin: 0 0 16px;
    color: var(--ge-auto-8eddeb02ba11);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.olx-detail-gallery-card {
    padding: 0;
}

.olx-main-photo-wrap {
    width: 100%;
    min-height: 520px;
    background: var(--ge-auto-1687aa4ac1de);
    border-radius: 22px 22px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.olx-main-photo {
    width: 100%;
    height: 540px;
    object-fit: contain;
    display: block;
    background: var(--ge-auto-1687aa4ac1de);
}

.olx-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 14px 14px;
    overflow-x: auto;
    background: var(--ge-auto-6aaa006dc095);
    scrollbar-width: thin;
}

.olx-thumb {
    width: 92px;
    height: 72px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--ge-auto-909554eab75c);
    cursor: pointer;
    overflow: hidden;
}

.olx-thumb.active {
    border-color: var(--ge-auto-59e84d576b76);
}

.olx-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Neutraliza qualquer CSS antigo do FlexSlider caso ele ainda esteja carregado */
.olx-detail-gallery-card .flexslider,
.olx-detail-gallery-card .slides,
.olx-detail-gallery-card .slides li {
    display: none !important;
}

.olx-detail-description,
.olx-detail-card:not(.olx-detail-gallery-card):not(.olx-buy-card):not(.olx-seller-card) {
    padding: 24px;
}

.olx-detail-text {
    color: var(--ge-auto-16887f872b9c);
    font-size: 16px;
    line-height: 1.75;
}

.olx-detail-text p {
    margin: 0 0 14px;
}

.olx-detail-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.olx-detail-info-grid div {
    padding: 16px;
    border-radius: 16px;
    background: var(--ge-auto-89e9e74e4107);
    border: 1px solid var(--ge-auto-2a12de717b8c);
}

.olx-detail-info-grid span {
    display: block;
    color: var(--ge-auto-713f92a19c1c);
    font-size:13px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.olx-detail-info-grid strong,
.olx-detail-info-grid a {
    color: var(--ge-auto-8eddeb02ba11) !important;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
}

.olx-buy-card {
    padding: 24px;
    position: sticky;
    top: 126px;
}

.olx-buy-card h1 {
    margin: 0 0 14px;
    color: var(--ge-auto-8eddeb02ba11);
    font-size: 25px;
    line-height: 1.22;
    font-weight: 900;
}

.olx-detail-price {
    color: var(--ge-auto-8eddeb02ba11);
    font-size: 34px;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 16px;
}

.olx-online-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--ge-auto-d87abf41b048);
    color: var(--ge-auto-eb350cf20614);
    font-size:13px;
    font-weight: 900;
    margin-bottom: 14px;
}

.olx-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--ge-auto-d0c37ac66790), var(--ge-auto-954953835ede));
    color: var(--ge-auto-6aaa006dc095) !important;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 14px 28px var(--ge-auto-2c628cd8157d);
    transition: transform .15s ease, box-shadow .15s ease;
}

.olx-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px var(--ge-auto-429049b39b6c);
}

.olx-buy-note {
    margin: 14px 0 0;
    color: var(--ge-auto-713f92a19c1c);
    font-size: 13px;
    line-height: 1.55;
}

.olx-buy-unavailable {
    padding: 14px;
    border-radius: 16px;
    background: var(--ge-auto-89e9e74e4107);
    color: var(--ge-auto-713f92a19c1c);
    font-weight: 800;
    line-height: 1.45;
}

.olx-buy-unavailable small {
    display: block;
    margin-top: 6px;
    color: var(--ge-auto-a632d402cf9c);
}

.olx-seller-card {
    padding: 20px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.olx-seller-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ge-auto-09b5218bd4c6), var(--ge-auto-904293227acd));
    color: var(--ge-auto-6aaa006dc095);
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.olx-seller-card span {
    display: block;
    color: var(--ge-auto-713f92a19c1c);
    font-size:13px;
    font-weight: 900;
    text-transform: uppercase;
}

.olx-seller-card strong {
    display: block;
    color: var(--ge-auto-8eddeb02ba11);
    font-size: 17px;
    font-weight: 900;
}

.olx-seller-card small {
    display: block;
    margin-top: 3px;
    color: var(--ge-auto-713f92a19c1c);
    font-size:13px;
}

.olx-whatsapp-btn,
.olx-phone-box {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--ge-auto-76b516808a4d);
    color: var(--ge-auto-6aaa006dc095) !important;
    font-weight: 900;
    text-decoration: none !important;
}

.olx-phone-box {
    background: var(--ge-auto-909554eab75c);
    color: var(--ge-auto-8eddeb02ba11) !important;
}

.olx-detail-meta {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    color: var(--ge-auto-713f92a19c1c);
    font-size: 13px;
    font-weight: 700;
}

.olx-detail-meta a {
    color: var(--ge-auto-490b6bd1f3c0) !important;
    text-decoration: none;
    font-weight: 900;
}

.olx-proposal-box input,
.olx-proposal-box textarea,
.olx-proposal-box select {
    max-width: 100%;
}

.olx-security-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--ge-auto-568ed7c7f40f);
    line-height: 1.65;
}

.olx-security-card li {
    margin-bottom: 8px;
}

.olx-detail-banner img {
    max-width: 100%;
    height: auto;
}

.olx-detail-empty {
    background: var(--ge-auto-6aaa006dc095);
    border: 1px solid var(--ge-auto-e1b5fd9b2a98);
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    color: var(--ge-auto-713f92a19c1c);
    font-weight: 800;
}

@media (max-width: 1080px) {
    .olx-detail-grid {
        grid-template-columns: 1fr;
    }

    .olx-buy-card {
        position: static;
    }
}

@media (max-width: 720px) {
    .olx-detalhe-main {
        padding: 16px 10px 38px;
    }

    .olx-main-photo-wrap {
        min-height: 320px;
    }

    .olx-main-photo {
        height: 340px;
    }

    .olx-detail-info-grid {
        grid-template-columns: 1fr;
    }

    .olx-buy-card h1 {
        font-size: 22px;
    }

    .olx-detail-price {
        font-size: 30px;
    }
}
