/* ============================================================
   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: #f5f5f5;
}

.olx-detalhe-main {
    background: linear-gradient(180deg, #fff 0%, #f5f5f5 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: #667085;
    font-size: 13px;
    font-weight: 800;
}

.olx-detail-breadcrumb a {
    color: #0087e0 !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: #fff;
    border: 1px solid #e1e5ee;
    border-radius: 22px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.olx-detail-card h2 {
    margin: 0 0 16px;
    color: #111827;
    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: #f6f7f9;
    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: #f6f7f9;
}

.olx-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 14px 14px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: thin;
}

.olx-thumb {
    width: 92px;
    height: 72px;
    flex: 0 0 auto;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
    overflow: hidden;
}

.olx-thumb.active {
    border-color: #8a00e6;
}

.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: #2d3340;
    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: #f8fafc;
    border: 1px solid #eef1f5;
}

.olx-detail-info-grid span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.olx-detail-info-grid strong,
.olx-detail-info-grid a {
    color: #111827 !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: #111827;
    font-size: 25px;
    line-height: 1.22;
    font-weight: 900;
}

.olx-detail-price {
    color: #111827;
    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: #f5eaff;
    color: #7b00d9;
    font-size: 12px;
    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, #ff7a00, #ff9900);
    color: #fff !important;
    font-size: 16px;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 14px 28px rgba(255, 122, 0, .24);
    transition: transform .15s ease, box-shadow .15s ease;
}

.olx-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(255, 122, 0, .30);
}

.olx-buy-note {
    margin: 14px 0 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.55;
}

.olx-buy-unavailable {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
    color: #667085;
    font-weight: 800;
    line-height: 1.45;
}

.olx-buy-unavailable small {
    display: block;
    margin-top: 6px;
    color: #98a2b3;
}

.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, #6a0dad, #ff8a00);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.olx-seller-card span {
    display: block;
    color: #667085;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.olx-seller-card strong {
    display: block;
    color: #111827;
    font-size: 17px;
    font-weight: 900;
}

.olx-seller-card small {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
}

.olx-whatsapp-btn,
.olx-phone-box {
    display: inline-flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #16a34a;
    color: #fff !important;
    font-weight: 900;
    text-decoration: none !important;
}

.olx-phone-box {
    background: #f3f4f6;
    color: #111827 !important;
}

.olx-detail-meta {
    margin-top: 16px;
    display: grid;
    gap: 8px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.olx-detail-meta a {
    color: #0087e0 !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: #374151;
    line-height: 1.65;
}

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

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

.olx-detail-empty {
    background: #fff;
    border: 1px solid #e1e5ee;
    border-radius: 22px;
    padding: 30px;
    text-align: center;
    color: #667085;
    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;
    }
}
