/* catalogo_ofertas — estilos */
#catalogo-ofertas { padding: 8px 12px 4px; max-width: 1100px; margin: 0 auto; }
.of-head { margin-bottom: 9px; }
.of-title { font-size: 1.05rem; font-weight: 700; color: var(--cat-ofertas,#b91c1c); }
.of-row { display: flex; gap: 11px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.of-row::-webkit-scrollbar { height: 5px; }
.of-row::-webkit-scrollbar-thumb { background: #f0b4b4; border-radius: 999px; }
.of-card { flex: 0 0 auto; width: 152px; border: 1px solid #f1d6d6; border-radius: 14px; overflow: hidden; background: #fff; scroll-snap-align: start; }
.of-imgwrap { position: relative; height: 108px; background: #fbeaea; }
.of-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-card-badge { position: absolute; top: 7px; left: 7px; background: var(--cat-ofertas,#dc2626); color: #fff; font-size: 0.66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.of-cbody { padding: 8px 10px; }
.of-cname { font-size: 0.82rem; font-weight: 600; color: #3a1d0e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-cprices { display: flex; align-items: baseline; gap: 7px; margin: 3px 0 8px; }
.of-antes { font-size: 0.72rem; color: #9ca3af; text-decoration: line-through; }
.of-ahora { font-size: 0.92rem; font-weight: 700; color: #16a34a; }
.of-add { width: 100%; background: var(--cat-ofertas,#dc2626); color: #fff; border: none; padding: 7px; border-radius: 9px; font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.of-add:active { transform: scale(0.97); }

/* Badge sobre las tarjetas normales de la lista */
.of-badge { position: absolute; top: 7px; left: 7px; background: var(--cat-ofertas,#dc2626); color: #fff; font-size: 0.64rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; z-index: 5; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* Popup de ofertas */
.of-pop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.of-pop-box { background: #fff; border-radius: 20px; max-width: 460px; width: 100%; max-height: 88vh; display: flex; flex-direction: column; overflow: hidden; }
.of-pop-head { background: var(--cat-ofertas,#dc2626); color: #fff; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.of-pop-title { font-size: 1.1rem; font-weight: 700; }
.of-pop-x { background: rgba(255,255,255,.2); border: none; color: #fff; width: 30px; height: 30px; border-radius: 50%; font-size: 1rem; cursor: pointer; line-height: 1; }
.of-pop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 16px; overflow-y: auto; }
.of-pop-foot { margin: 0 16px 16px; padding: 11px; border: none; background: #f3f4f6; color: #374151; border-radius: 10px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.of-pop .of-card { width: auto; }

/* Boton flotante */
#of-fab { position: fixed; left: 14px; bottom: 18px; z-index: 9000; background: var(--cat-ofertas,#dc2626); color: #fff; border: none; border-radius: 999px; padding: 11px 16px; font-size: .85rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(220,38,38,.4); display: flex; align-items: center; gap: 7px; }
#of-fab span { background: #fff; color: var(--cat-ofertas,#dc2626); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }
#of-fab:active { transform: scale(0.96); }
