* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --laranja: #ff6b35; --laranja2: #f7931e; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    background: #f2f3f7;
    color: #23252e;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 40px;
}

/* Header */
.of-header {
    background: linear-gradient(135deg, var(--laranja) 0%, var(--laranja2) 100%);
    color: #fff;
    padding: 16px 16px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}
.of-header-top { display: flex; align-items: center; gap: 10px; }
.of-header-top h1 { flex: 1; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.of-voltar {
    color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 800;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.18); border-radius: 10px;
}
.of-instalar {
    background: #fff; color: var(--laranja); border: none; border-radius: 10px;
    padding: 8px 12px; font-weight: 700; font-size: .85rem; cursor: pointer;
}
.of-sub { font-size: .9rem; opacity: .95; margin-top: 4px; }

/* Alertas */
.of-alertas { margin-top: 14px; }
.of-alertas-btn {
    width: 100%; background: rgba(0,0,0,.18); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 12px; padding: 12px; font-weight: 700; font-size: .95rem; cursor: pointer;
}
.of-alertas-painel {
    background: #fff; color: #23252e; border-radius: 12px; padding: 14px; margin-top: 10px;
}
.of-alertas-txt { font-size: .88rem; color: #555; margin-bottom: 10px; }
.of-alertas-txt em { color: var(--laranja); font-style: normal; font-weight: 600; }
.of-tags-input { display: flex; gap: 8px; }
.of-tags-input input {
    flex: 1; padding: 10px 12px; border: 2px solid #e3e6f2; border-radius: 10px; font-size: .95rem; outline: none;
}
.of-tags-input button {
    background: var(--laranja); color: #fff; border: none; border-radius: 10px; padding: 0 16px; font-weight: 700; cursor: pointer;
}
.of-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.of-tag {
    background: #fff2ea; color: var(--laranja); border: 1px solid #ffd6c2; border-radius: 999px;
    padding: 6px 12px; font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.of-tag b { font-weight: 700; }
.of-tag span { cursor: pointer; font-weight: 800; opacity: .7; }
.of-tag span:hover { opacity: 1; }
.of-alertas-acoes { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.of-btn-sec { background: none; border: none; color: #c0392b; font-weight: 600; cursor: pointer; font-size: .85rem; }
.of-status { font-size: .8rem; color: #2e7d32; }

/* Filtros */
.of-filtros { margin-top: 14px; }
.of-filtros #busca {
    width: 100%; padding: 12px 14px; border: none; border-radius: 12px; font-size: 1rem; outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.of-lojas { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; scrollbar-width: none; }
.of-lojas::-webkit-scrollbar { display: none; }
.of-loja-chip {
    white-space: nowrap; background: rgba(255,255,255,.22); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 999px; padding: 6px 14px; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.of-loja-chip.ativo { background: #fff; color: var(--laranja); border-color: #fff; }

/* Grid de ofertas */
.of-grid {
    max-width: 1100px; margin: 16px auto 0; padding: 0 12px;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
}
.of-loading, .of-vazio { grid-column: 1/-1; text-align: center; color: #8a8d99; padding: 50px 10px; }

.of-card {
    background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: #23252e;
    display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,.07);
    transition: transform .15s ease, box-shadow .15s ease;
}
.of-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,.14); }
.of-card-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.of-card-ph { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.of-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.of-card-loja { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #8a8d99; letter-spacing: .3px; }
.of-card-titulo {
    font-size: .85rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em;
}
.of-card-preco { font-size: 1.05rem; font-weight: 800; color: #2e7d32; }
.of-card-cupom { font-size: .72rem; color: var(--laranja); font-weight: 700; }
.of-card-novo { font-size: .65rem; color: #fff; background: var(--laranja); align-self: flex-start; padding: 2px 7px; border-radius: 6px; font-weight: 700; }
.of-card-cta { margin-top: auto; text-align: center; background: linear-gradient(45deg, var(--laranja), var(--laranja2)); color: #fff; font-weight: 700; font-size: .82rem; border-radius: 8px; padding: 8px; }

.of-footer { text-align: center; color: #9a9db0; font-size: .82rem; margin-top: 34px; padding: 0 16px; }
.of-footer a { color: #6b6e7b; font-weight: 600; text-decoration: none; }
.of-footer p { margin-top: 6px; }

@media (min-width: 640px) {
    .of-header-top h1 { font-size: 1.6rem; }
    .of-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
}
