/* ==============================================
   ONDE COMPRAR — tela cheia, busca + lista + mapa
   (carrega depois de site.css e claro.css)
   ============================================== */

.oc-main { background: var(--cream); }
.oc-wrap {
    width: min(1440px, calc(100% - 64px));
    margin-inline: auto;
}

.eyebrow-line {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}
.eyebrow-line::before {
    content: '';
    width: 38px;
    height: 2px;
    background: var(--red);
}

/* ---- Hero com a busca ---- */
.oc-hero {
    background:
        radial-gradient(ellipse 45% 70% at 82% 45%, rgba(255, 255, 255, .5), transparent 70%),
        linear-gradient(180deg, #f3e7d3 0%, #efdfc6 100%);
    border-bottom: 3px solid var(--red);
}
.oc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    padding-block: clamp(48px, 7vw, 88px);
}
.oc-hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 4.6vw, 4rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    color: var(--ink-900);
}
.oc-hero h1 span { color: var(--red); }
.oc-lead {
    margin: 18px 0 0;
    max-width: 52ch;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-700);
}

.oc-search { margin-top: 32px; max-width: 720px; }
.oc-tabs {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(70, 45, 20, .08);
}
.oc-tabs .rep-tab {
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-500);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}
.oc-tabs .rep-tab.is-active {
    background: #fff;
    color: var(--ink-900);
    box-shadow: 0 2px 8px rgba(70, 45, 20, .12);
}
.oc-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: #fff;
    border: 1px solid rgba(70, 45, 20, .16);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(70, 45, 20, .12);
}
.oc-form-icon {
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-left: 12px;
    color: var(--red);
}
.oc-field { flex: 1; min-width: 0; }
.oc-field[hidden] { display: none; }
.oc-field input {
    width: 100%;
    padding: 14px 8px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink-900);
    font-size: 1.1rem;
    font-weight: 600;
}
.oc-field input::placeholder { color: var(--ink-400); font-weight: 500; }
.oc-form .btn { padding: 15px 24px; border-radius: 10px; white-space: nowrap; }
.oc-form:focus-within { border-color: rgba(196, 30, 26, .5); }

.oc-status { margin-top: 12px; min-height: 1.4em; font-size: .9rem; text-align: left; }
.oc-status .rep-status-ok { color: #1f7a45; font-weight: 700; }
.oc-status .rep-status-err { color: var(--red); font-weight: 600; }
.oc-status .rep-saved-hint { color: var(--ink-500); }
.oc-status .rep-saved-clear { color: var(--red); background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }

.oc-assistant[hidden] { display: none; }
.oc-assistant-steps {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.oc-assistant-steps .rep-assistant-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: var(--ink-400);
}
.oc-assistant-steps .rep-assistant-step::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(70, 45, 20, .2);
}
.oc-assistant-steps .rep-assistant-step.active { color: var(--ink-900); font-weight: 600; }
.oc-assistant-steps .rep-assistant-step.active::before { background: var(--red); animation: ocPulse 1s ease-in-out infinite; }
.oc-assistant-steps .rep-assistant-step.done { color: var(--ink-500); }
.oc-assistant-steps .rep-assistant-step.done::before { background: #1f7a45; }
@keyframes ocPulse { 50% { transform: scale(1.5); opacity: .5; } }

.oc-b2b {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 22px 0 0;
    font-size: .88rem;
    color: var(--ink-500);
}
.oc-b2b svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-400); }

.oc-hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.oc-hero-visual img {
    width: min(100%, 300px);
    height: auto;
    filter: drop-shadow(0 24px 30px rgba(70, 40, 15, .3));
}
.oc-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
}
.oc-steps li {
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ink-700);
}
.oc-steps b {
    display: grid;
    place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ink-900);
    color: #fff;
    font-size: .78rem;
}

/* ---- Resultados ---- */
.oc-results { padding: 56px 0 80px; }
.oc-result[hidden],
.oc-placeholder[hidden] { display: none; }
.oc-placeholder,
.oc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 24px;
    text-align: center;
    border: 1.5px dashed rgba(70, 45, 20, .22);
    border-radius: 16px;
    color: var(--ink-500);
}
.oc-placeholder strong { color: var(--ink-900); }
.oc-placeholder-icon {
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #ead6b6;
    color: var(--ink-900);
}
.oc-placeholder-icon svg { width: 30px; height: 30px; }
.oc-empty { border-style: solid; background: var(--paper); }
.oc-empty h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink-900); }
.oc-empty p { max-width: 60ch; }

.oc-result-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.oc-result-kicker {
    margin: 0 0 4px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
}
.oc-result-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--ink-900);
}
.oc-result-insight { max-width: 52ch; font-size: .92rem; color: var(--ink-500); text-align: right; }

.oc-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: start;
}
.oc-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.oc-card {
    display: flex;
    gap: 18px;
    padding: 14px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.oc-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(70, 45, 20, .1); }
.oc-card.is-active {
    border-color: var(--red);
    box-shadow: 0 0 0 1px var(--red), 0 12px 26px rgba(196, 30, 26, .12);
}
.oc-card:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.oc-thumb {
    position: relative;
    flex-shrink: 0;
    width: 132px;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #ead6b6;
}
.oc-thumb-photo { width: 100%; height: 100%; object-fit: cover; }
.oc-thumb-brand {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .55), transparent 60%),
        linear-gradient(160deg, #e8cfa6 0%, #cfa874 100%);
}
.oc-thumb-brand { align-items: center; }
.oc-thumb-brand img {
    width: auto;
    height: 84%;
    filter: drop-shadow(0 8px 10px rgba(70, 40, 15, .35));
}
.oc-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-top: 2px; }
.oc-card-tag {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(31, 122, 69, .1);
    color: #1f7a45;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.oc-card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.015em; color: var(--ink-900); }
.oc-card-addr { font-size: .92rem; color: var(--ink-700); }
.oc-card-city { font-size: .82rem; color: var(--ink-400); }
.oc-card-link {
    margin-top: auto;
    padding-top: 8px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--red);
}
.oc-card-link:hover { text-decoration: underline; }

.oc-map { position: sticky; top: calc(var(--nav-h) + 20px); }
.oc-map-frame {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #e9e4dc;
    box-shadow: 0 18px 40px rgba(70, 45, 20, .14);
    aspect-ratio: 4 / 3.4;
}
.oc-map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.oc-map-caption { margin: 12px 0 0; font-size: .88rem; color: var(--ink-500); }
.oc-map-caption strong { color: var(--ink-900); }

/* ---- CTA revenda ---- */
.oc-cta { padding: 56px 0; background: var(--ink-900); }
.oc-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.oc-cta h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.oc-cta p { margin-top: 6px; color: #cdb79f; }

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
    .oc-result-grid { grid-template-columns: 1fr; }
    .oc-map { position: static; order: -1; }
    .oc-map-frame { aspect-ratio: 16 / 9; }
    .oc-result-head { flex-direction: column; align-items: flex-start; }
    .oc-result-insight { text-align: left; }
}
@media (max-width: 860px) {
    .oc-hero-grid { grid-template-columns: 1fr; }
    .oc-hero-visual { display: none; }
}
@media (max-width: 560px) {
    .oc-wrap { width: calc(100% - 32px); }
    .oc-form { flex-wrap: wrap; padding: 8px; }
    .oc-form .btn { width: 100%; }
    .oc-tabs .rep-tab { padding: 8px 12px; font-size: .82rem; }
    .oc-card { gap: 14px; padding: 12px; }
    .oc-thumb { width: 92px; }
    .oc-card-tag { font-size: .62rem; }
    .oc-cta-inner { flex-direction: column; align-items: flex-start; }
    .oc-cta .btn { width: 100%; }
}

@media (max-width: 560px) {
    .oc-card-tag { font-size: 11.5px; }
    .oc-card-link { display: inline-flex; align-items: center; min-height: 40px; padding-top: 4px; }
    .oc-status .rep-saved-clear { padding: 10px 4px; }
}
