/* Ofertas ocultas (03/11/2026): /ofertas-ocultas (lista) e /oferta/{slug}-{id} (produto).
   Mesmo visual do protótipo aprovado: quadrado, #050505 e #25D366. Peças em includes/ofertas.php. */
.of { background: #050505; color: #fff; font-family: 'Inter', system-ui, sans-serif; }
.of *, .of *::before, .of *::after { box-sizing: border-box; }
.of a { text-decoration: none; }
.of [hidden] { display: none !important; }
.of-wrap { max-width: 1232px; margin: 0 auto; padding: 16px 16px 40px; }
.of-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabeçalho da lista */
.of-h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 900; letter-spacing: -.5px; color: #fff; }
.of-h1 span { color: #25D366; }
.of-sub { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: #b9c3bb; }
.of-sub b { color: #fff; }
.of-search { position: relative; display: flex; height: 48px; margin-top: 14px; border: 2px solid #2a2a2a; background: #0e0e0e; }
.of-search:focus-within { border-color: #25D366; }
.of-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 0 14px; font: 500 16px 'Inter', system-ui, sans-serif; outline: none; }
.of-search input::placeholder { color: #8a948c; }
.of-search button { width: 52px; flex: none; border: 0; background: #25D366; color: #050505; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.of-busca-tag { margin: 10px 0 0; font-size: 14px; color: #b9c3bb; }
.of-busca-tag b { color: #fff; }
.of-busca-tag a { margin-left: 8px; color: #25D366; font-weight: 800; }
.of-chips { display: flex; gap: 8px; margin: 14px -16px 0; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.of-chips::-webkit-scrollbar { display: none; }
.of-chip { flex: none; height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid #2a2a2a; background: #111; color: #d6ddd8 !important; font-size: 14px; font-weight: 700; white-space: nowrap; }
.of-chip i { width: 8px; height: 8px; display: inline-block; }
.of-chip:hover { border-color: #25D366; }
.of-chip.on { background: #25D366; border-color: #25D366; color: #050505 !important; }
.of-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.of-count { font-size: 13px; color: #9aa69c; font-weight: 600; }
.of-sort { display: flex; gap: 0; border: 1px solid #2a2a2a; }
.of-sort a { height: 38px; display: inline-flex; align-items: center; padding: 0 12px; color: #b9c3bb !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.of-sort a.on { background: #fff; color: #050505 !important; }

/* Grade de cards */
.of-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 10px; }
.of-card { display: flex; flex-direction: column; min-width: 0; background: #0e0e0e; border: 1px solid #1f1f1f; color: #fff !important; }
.of-card:hover { border-color: #25D366; }
.of-img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.of-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.of-off { position: absolute; top: 8px; left: 8px; padding: 3px 7px; background: #E11D48; color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .3px; }
.of-body { flex: 1; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 12px; }
.of-loja { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #b9c3bb; }
.of-loja i { flex: none; width: 8px; height: 8px; display: inline-block; }
.of-tit { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; font-size: 14px; line-height: 1.35; font-weight: 700; color: #fff; }
.of-de { min-height: 15px; font-size: 12px; color: #8a948c; text-decoration: line-through; }
.of-por { font-size: 19px; font-weight: 900; color: #25D366; letter-spacing: -.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-meta { margin-top: auto; padding-top: 4px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8a948c; }
.of-cup { display: inline-flex; align-items: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 2px 6px; border: 1px dashed #25D366; color: #25D366; font-size: 11px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }

/* Faixa de grupos */
.of-gr { margin: 18px 0; padding: 14px; border: 2px solid #1d3a27; background: #071009; }
.of-grid > .of-gr { grid-column: 1 / -1; margin: 8px 0; }
.of-gr h2 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 900; color: #fff; }
.of-gr p { margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: #b9c3bb; }
.of-gl { display: flex; flex-direction: column; gap: 8px; }
.of-g { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid #1d3a27; background: #0a140d; color: #fff !important; }
.of-g:hover { border-color: #25D366; }
.of-g img { width: 48px; height: 48px; object-fit: cover; display: block; background: #111; }
.of-g-tx { min-width: 0; }
.of-g-tx strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 1.3; }
.of-g-tx span { display: block; margin-top: 2px; font-size: 12px; color: #9aa69c; white-space: nowrap; }
.of-tag { display: inline-block; margin-right: 5px; padding: 1px 5px; background: #25D366; color: #050505; font-size: 10px; font-weight: 900; letter-spacing: .4px; }
.of-g-btn { height: 40px; display: flex; align-items: center; padding: 0 12px; background: #25D366; color: #050505; font-size: 13px; font-weight: 900; white-space: nowrap; }
.of-gall { min-height: 44px; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #25D366 !important; font-size: 14px; font-weight: 800; }
.of-gall:hover { color: #fff !important; }

/* Mais ofertas / vazio / aviso */
.of-more { width: 100%; height: 52px; margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #25D366; background: transparent; color: #25D366 !important; font: 900 15px 'Inter', system-ui, sans-serif; letter-spacing: .4px; white-space: nowrap; cursor: pointer; }
.of-more:hover { background: #0b120d; }
.of-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.of-pag { margin: 8px 0 0; text-align: center; font-size: 13px; color: #8a948c; }
.of-vazio { padding: 48px 16px; border: 2px dashed #2a2a2a; text-align: center; }
.of-vazio h2 { margin: 0 0 6px; font-size: 20px; font-weight: 900; color: #fff; }
.of-vazio p { margin: 0 0 16px; font-size: 14px; color: #9aa69c; }
.of-vazio a { display: inline-flex; height: 44px; align-items: center; padding: 0 18px; background: #25D366; color: #050505 !important; font-weight: 900; }
.of-disc { margin: 24px 0 0; padding: 12px 0 0; border-top: 1px solid #1f1f1f; display: flex; gap: 8px; font-size: 12px; line-height: 1.5; color: #9aa69c; }
.of-disc svg { flex: none; margin-top: 1px; }

/* Página da oferta */
.of-crumb { margin: 0 0 12px; font-size: 13px; color: #9aa69c; }
.of-crumb a { color: #9aa69c; }
.of-crumb a:hover { color: #fff; }
.of-hero { position: relative; height: 300px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.of-hero img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.of-hero .of-off { top: 10px; left: 10px; padding: 5px 9px; font-size: 14px; }
.of-pl { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; font-weight: 600; color: #b9c3bb; }
.of-pl i { width: 10px; height: 10px; display: inline-block; }
.of-pl b { color: #fff; }
.of-pl a { color: #25D366; font-weight: 800; }
.of-ptit { margin: 8px 0 0; font-size: 21px; line-height: 1.3; font-weight: 800; letter-spacing: -.2px; color: #fff; overflow-wrap: anywhere; }
.of-velha { margin: 12px 0 0; padding: 10px 12px; border: 1px solid #5c4a12; background: #1a1505; font-size: 13px; line-height: 1.45; color: #f3d98b; }
.of-price { margin-top: 14px; padding: 14px; border: 1px solid #232323; background: #0e0e0e; }
.of-price .d { font-size: 14px; color: #8a948c; text-decoration: line-through; }
.of-price .p { margin-top: 2px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.of-price .p b { font-size: 34px; line-height: 1.1; font-weight: 900; color: #25D366; letter-spacing: -.8px; }
.of-price .p em { padding: 3px 7px; background: #E11D48; color: #fff; font-style: normal; font-size: 14px; font-weight: 900; }
.of-price .p small { font-size: 14px; font-weight: 700; color: #d6ddd8; }
.of-price .s { margin-top: 4px; font-size: 14px; font-weight: 600; color: #d6ddd8; }
.of-coupon { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 10px 10px 14px; border: 2px dashed #25D366; background: #071009; }
.of-coupon small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .8px; color: #25D366; }
.of-coupon strong { display: block; margin-top: 2px; overflow-wrap: anywhere; font: 900 22px/1.1 ui-monospace, Consolas, monospace; letter-spacing: 1.5px; color: #fff; }
.of-coupon button, .of-coupon a { height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 14px; border: 0; background: #25D366; color: #050505 !important; font: 900 14px 'Inter', system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.of-cta { height: 56px; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #25D366; color: #050505 !important; font-size: 16px; font-weight: 900; letter-spacing: .4px; white-space: nowrap; }
.of-cta:hover { background: #2ee374; }
.of-note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: #9aa69c; text-align: center; }
.of-share { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.of-share button { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #2a2a2a; background: #0e0e0e; color: #d6ddd8; font: 800 14px 'Inter', system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.of-share button:hover { border-color: #25D366; color: #fff; }
.of-sec { margin-top: 22px; }
.of-sec > h2 { margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: 1.2px; color: #9aa69c; }
.of-facts { margin: 0; padding: 0; list-style: none; border: 1px solid #1f1f1f; }
.of-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border-top: 1px solid #1f1f1f; font-size: 14px; color: #b9c3bb; }
.of-facts li:first-child { border-top: 0; }
.of-facts li b { display: flex; align-items: center; gap: 5px; text-align: right; color: #fff; }
.of-facts li a { color: #25D366; }
.of-det { margin: 10px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.55; color: #b9c3bb; }
.of-qr { display: none; }
.of-toast { position: fixed; left: 50%; bottom: 88px; z-index: 1200; transform: translateX(-50%); padding: 12px 16px; background: #25D366; color: #050505; font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }

/* Barra fixa do celular (aparece quando o botão principal sai da tela) */
.of-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #0a0a0a; border-top: 2px solid #25D366; transform: translateY(110%); transition: transform .2s ease; }
.of-sticky.on { transform: none; }
.of-sticky-p { min-width: 0; flex: 1; }
.of-sticky-p b { display: block; font-size: 20px; font-weight: 900; color: #25D366; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-sticky-p span { display: block; font-size: 12px; color: #9aa69c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-sticky a { height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #25D366; color: #050505 !important; font-size: 14px; font-weight: 900; white-space: nowrap; }

@media (min-width: 600px) {
    .of-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .of-wrap { padding: 28px 16px 48px; }
    .of-head { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 32px; align-items: end; }
    .of-head .of-search { margin-top: 0; }
    .of-h1 { font-size: 40px; }
    .of-sub { font-size: 15px; }
    .of-filt { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
    .of-filt .of-chips { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }
    .of-filt .of-tools { margin: 0; flex: none; }
    .of-list-grid { margin-top: 18px; }
    .of-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .of-tit { min-height: 40px; font-size: 15px; }
    .of-por { font-size: 21px; }
    .of-gr { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: center; }
    .of-gr p { margin-bottom: 0; }
    .of-gl { flex-direction: row; }
    .of-gl .of-g { flex: 1; min-width: 0; }
    .of-g-btn { padding: 0 10px; }
    .of-more { width: 360px; margin: 24px auto 0; }
    /* produto */
    .of-prod { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; }
    .of-hero { height: 520px; }
    .of-ptit { font-size: 28px; }
    .of-lower { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: start; margin-top: 8px; }
    .of-lower .of-gr { display: block; margin: 22px 0 0; }
    .of-lower .of-gl { flex-direction: column; }
    .of-rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .of-qr { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border: 1px solid #232323; }
    .of-qr-box { width: 112px; height: 112px; display: flex; align-items: center; justify-content: center; padding: 6px; background: #fff; }
    .of-qr-box img, .of-qr-box canvas { width: 100px !important; height: 100px !important; display: block; }
    .of-qr p { margin: 0; font-size: 13px; line-height: 1.45; color: #b9c3bb; }
    .of-qr p strong { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; font-size: 14px; color: #fff; }
    .of-sticky { display: none; }
}
